diff options
author | 2009-02-07 15:18:14 +0000 | |
---|---|---|
committer | 2009-02-07 15:18:14 +0000 | |
commit | c2432a42fe13c3c6774f5443ac8f6f7261fe91d1 (patch) | |
tree | dc2546455f0f9f0751aca0e407ce7929996ce627 /target-sh4 | |
parent | Add it_shift (diff) | |
download | qemu-kvm-c2432a42fe13c3c6774f5443ac8f6f7261fe91d1.tar.gz qemu-kvm-c2432a42fe13c3c6774f5443ac8f6f7261fe91d1.tar.bz2 qemu-kvm-c2432a42fe13c3c6774f5443ac8f6f7261fe91d1.zip |
SH7750/51: add register BCR3, BCR4, PCR, RTCOR, RTCNT, RTCSR, SDMR2, SDMR3 and fix BCR2 support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6548 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r-- | target-sh4/cpu.h | 1 | ||||
-rw-r--r-- | target-sh4/translate.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index 623eacc0a..86a4a6ba3 100644 --- a/target-sh4/cpu.h +++ b/target-sh4/cpu.h @@ -95,6 +95,7 @@ typedef struct tlb_t { enum sh_features { SH_FEATURE_SH4A = 1, + SH_FEATURE_BCR3_AND_BCR4 = 2, }; typedef struct CPUSH4State { diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 80ea85111..a0ee4f1ba 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -222,12 +222,14 @@ static sh4_def_t sh4_defs[] = { .pvr = 0x00050000, .prr = 0x00000100, .cvr = 0x00110000, + .features = SH_FEATURE_BCR3_AND_BCR4, }, { .name = "SH7751R", .id = SH_CPU_SH7751R, .pvr = 0x04050005, .prr = 0x00000113, .cvr = 0x00110000, /* Neutered caches, should be 0x20480000 */ + .features = SH_FEATURE_BCR3_AND_BCR4, }, { .name = "SH7785", .id = SH_CPU_SH7785, |