On 11/13/26 08:11, Philippe Mathieu-Daudé wrote:
BBEQZC (MD01247 p.38) and BBNEZC (p.39) encode the bit number in
bits 16:11; bit 17 is 'x' (don't care). The decoder used the 7-bit
immediate (17:11) of the other P.BRI branches, so a set bit 17 gave
a bit number >= 64 and raised Reserved Instruction on cores without
64-bit operations. Decode only 6 bits for these two; BEQIC and the
other P.BRI branches really have a 7-bit u field.

Fixes: 11d0fc10b7ef ("target/mips: Add emulation of nanoMIPS 32-bit branch")
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
  target/mips/tcg/nanomips_translate.c.inc | 8 +++++---
  1 file changed, 5 insertions(+), 3 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to