Skip to content

Commit

Permalink
Hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoodman committed Nov 2, 2020
1 parent 3808e99 commit 2e334f8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lib/Arch/X86/Semantics/MISC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ DEF_SEM(DoNothing) {
return memory;
}

template <typename S1>
DEF_SEM(DoNothingWithParam, S1 src1) {
return memory;
}

template <typename S1, typename S2>
DEF_SEM(DoNothingWithParam, S1 src1, S2 src2) {
template <typename...Args>
DEF_SEM(DoNothingWithParam, Args...) {
return memory;
}

Expand Down Expand Up @@ -181,11 +176,11 @@ DEF_ISEL(XLAT) = DoXLAT;

DEF_ISEL(CPUID) = DoCPUID;

DEF_ISEL(UD0_GPR32_MEMd) = DoNothingWithParam<R32, M32>;
DEF_ISEL(UD0_GPR32_MEMd) = DoNothingWithParam<R32, M32, IF_32BIT_ELSE(R32W, R64W)>;

DEF_ISEL(UD1_GPR32_MEMd) = DoNothingWithParam<R32, M32>;
DEF_ISEL(UD1_GPR32_MEMd) = DoNothingWithParam<R32, M32, IF_32BIT_ELSE(R32W, R64W)>;

DEF_ISEL(UD2) = DoNothing;
DEF_ISEL(UD2) = DoNothingWithParam<IF_32BIT_ELSE(R32W, R64W)>;

DEF_ISEL(HLT) = DoNothingWithParam<IF_32BIT_ELSE(R32W, R64W)>;

Expand Down

0 comments on commit 2e334f8

Please sign in to comment.