mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target-i386: Clear bndregs during legacy near jumps
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
bdd87b3b59
commit
7d117ce81e
3 changed files with 29 additions and 0 deletions
|
@ -156,3 +156,11 @@ void helper_bndstx32(CPUX86State *env, target_ulong base, target_ulong ptr,
|
|||
cpu_stl_data_ra(env, bte + 4, ub, ra);
|
||||
cpu_stl_data_ra(env, bte + 8, ptr, ra);
|
||||
}
|
||||
|
||||
void helper_bnd_jmp(CPUX86State *env)
|
||||
{
|
||||
if (!(env->hflags2 & HF2_MPX_PR_MASK)) {
|
||||
memset(env->bnd_regs, 0, sizeof(env->bnd_regs));
|
||||
env->hflags &= ~HF_MPX_IU_MASK;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue