Fixed buffer overflow in LOAD_Wdq method when MXCSR.MM=1 -> thanks new gcc10 warning
This commit is contained in:
parent
c6050a99d1
commit
1df9bc0070
@ -136,7 +136,7 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::LOAD_Wdq(bxInstruction_c *i)
|
||||
bx_address eaddr = BX_CPU_RESOLVE_ADDR(i);
|
||||
|
||||
if (BX_CPU_THIS_PTR mxcsr.get_MM())
|
||||
read_virtual_xmmword(i->seg(), eaddr, &BX_READ_XMM_REG(BX_TMP_REGISTER));
|
||||
read_virtual_xmmword(i->seg(), eaddr, &BX_READ_XMM_REG(BX_VECTOR_TMP_REGISTER));
|
||||
else
|
||||
read_virtual_xmmword_aligned(i->seg(), eaddr, &BX_READ_XMM_REG(BX_VECTOR_TMP_REGISTER));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user