On 11/13/26 08:11, Philippe Mathieu-Daudé wrote:
The DSP LHX, LWX and LDX loads require a naturally aligned address
and raise Address Error otherwise (MD00374 r3.01 p.130-131, MD00375
r3.02 p.145). Use the default memop alignment mask for them (strict,
except under linux-user FIXADE); LBUX is a byte access.
The Octeon LX forms share gen_lx() and are unchanged.

LDX belongs to the MIPS64 DSP module only, but was decoded on any DSP
CPU in a 64-bit build, including 32-bit ones such as the 24KE or 74K.
Call check_mips_64() after the DSP Disabled check to raise Reserved
Instruction there.

Fixes: 9b1a1d68d041 ("target-mips: Add ASE DSP load instructions")
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
  target/mips/tcg/translate.c | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)

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

r~

Reply via email to