On 10/26/26 11:20, Philippe Mathieu-Daudé wrote:
From: Philippe Mathieu-Daudé<[email protected]>
Convert both the 16-bit RI and the extended EXT-RI forms.
Decode the destination with xlat(); both immediates are
zero-extended (8-bit and 16-bit).
The legacy decoder ignored EXT-RI bits [7:5]; the pattern
requires them to be zero, as specified. Other encodings
now raise a Reserved Instruction exception.
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
Since v3:
- Fix EXT-RI immediate field order (%ext_uimm16)
- Rename @ri format as @ext_ri
---
target/mips/tcg/mips16e_16.decode | 8 ++++++++
target/mips/tcg/mips16e_32.decode | 9 +++++++++
target/mips/tcg/mips16e_translate.c | 7 +++++++
target/mips/tcg/mips16e_translate.c.inc | 11 -----------
4 files changed, 24 insertions(+), 11 deletions(-)
Reviewed-by: Richard Henderson <[email protected]>
r~