Skip to contentSkip to conversation

target/mips: remove MIPS16 ASE from 4Km

PATCH In review Philippe Mathieu-Daudé 2 participants 4 messages Aug 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/mips: remove MIPS16 ASE from 4Km

MIPS32 4Km does not support the MIPS16 instruction set, see:
MIPS32 4K Processor Core Family Software UM (MD00016 Rev 01.18)

---
probably incorrect copy/paste from 8d162c2b68db72623a507069fda0e35ccd1c6b85

 target/mips/translate_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/mips/translate_init.c +1 -1
index 255d25bacd..7297c8c000 100644
@@ -149,7 +149,7 @@ static const mips_def_t mips_defs[] =
         .CP0_Status_rw_bitmask = 0x1258FF17,
         .SEGBITS = 32,
         .PABITS = 32,
-        .insn_flags = CPU_MIPS32 | ASE_MIPS16,
+        .insn_flags = CPU_MIPS32,
         .mmu_type = MMU_TYPE_FMT,
     },
     {
Signature · 1 line
2.13.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Philippe Mathieu-Daudé

MIPS32 4Km does not support the MIPS16 instruction set, see:
MIPS32 4K Processor Core Family Software UM (MD00016 Rev 01.18)

---
probably incorrect copy/paste from 8d162c2b68db72623a507069fda0e35ccd1c6b85

 target/mips/translate_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/mips/translate_init.c +0 -0
index 255d25bacd..7297c8c000 100644

target/mips/translate_init.c static const mips_def_t mips_defs[] = · line 155

Quoted 8 lines
target/mips/translate_init.c +1 -1
@@ -149,7 +149,7 @@ static const mips_def_t mips_defs[] =
         .CP0_Status_rw_bitmask = 0x1258FF17,
         .SEGBITS = 32,
         .PABITS = 32,
-        .insn_flags = CPU_MIPS32 | ASE_MIPS16,
+        .insn_flags = CPU_MIPS32,
         .mmu_type = MMU_TYPE_FMT,
     },
     {

Regards,
Yongbok

#3 lore raw
Quoted 4 lines · Philippe Mathieu-Daudé
Quoted 1 line · Philippe Mathieu-Daudé

probably incorrect copy/paste from 8d162c2b68db72623a507069fda0e35ccd1c6b85

incorrect since 10 years, so can wait 2.11 :P

Fair enough :)

Regards,
Yongbok