target-xtensa: implement CPENABLE and PRID SRs

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Max Filippov 2011-09-06 03:55:50 +04:00 committed by Blue Swirl
parent 772177c194
commit f3df4c04d8
3 changed files with 10 additions and 0 deletions

View file

@ -55,6 +55,7 @@ static void xtensa_init(ram_addr_t ram_size,
exit(1);
}
qemu_register_reset(xtensa_sample_reset, env);
env->sregs[PRID] = n;
}
ram = g_malloc(sizeof(*ram));