We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abb3c4b commit e209647Copy full SHA for e209647
bochs/cpu/uintr.cc
@@ -88,9 +88,9 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::UIRET(bxInstruction_c *i)
88
89
BX_INSTR_FAR_BRANCH_ORIGIN();
90
91
- Bit64u new_rip = stack_read_qword(RSP + 8);
92
- Bit32u new_eflags = (Bit32u) stack_read_qword(RSP + 16);
93
- Bit64u new_rsp = stack_read_qword(RSP + 24);
+ Bit64u new_rip = stack_read_qword(RSP);
+ Bit32u new_eflags = (Bit32u) stack_read_qword(RSP + 8);
+ Bit64u new_rsp = stack_read_qword(RSP + 16);
94
95
if (!IsCanonical(new_rip)) {
96
BX_ERROR(("UIRET #GP(0): return RIP is not canonical"));
0 commit comments