aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2011-09-06 03:55:50 +0400
committerBlue Swirl <blauwirbel@gmail.com>2011-09-10 16:57:39 +0000
commitf3df4c04d83b7f2f319ca8025c895b74aa7eab8d (patch)
treeae035b60c86981ad0fe9b5513c083c23dd0eab55 /hw
parent772177c194e5ea113945a9b5c15a6ab47bb84006 (diff)
downloadqemu-f3df4c04d83b7f2f319ca8025c895b74aa7eab8d.zip
qemu-f3df4c04d83b7f2f319ca8025c895b74aa7eab8d.tar.gz
qemu-f3df4c04d83b7f2f319ca8025c895b74aa7eab8d.tar.bz2
target-xtensa: implement CPENABLE and PRID SRs
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xtensa_sample.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xtensa_sample.c b/hw/xtensa_sample.c
index 0aeb7c8..31a6f70 100644
--- a/hw/xtensa_sample.c
+++ b/hw/xtensa_sample.c
@@ -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));