diff options
Diffstat (limited to 'target-i386/mpx_helper.c')
-rw-r--r-- | target-i386/mpx_helper.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target-i386/mpx_helper.c b/target-i386/mpx_helper.c index 53d98347d9..1bf717af05 100644 --- a/target-i386/mpx_helper.c +++ b/target-i386/mpx_helper.c @@ -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; + } +} |