X86: Check src1 for illegal values since that's the index we actually use.
This commit is contained in:
parent
d48214a656
commit
cb4141f6e6
1 changed files with 1 additions and 1 deletions
|
@ -928,7 +928,7 @@ let {{
|
||||||
super(Rdcr, self).__init__(dest, \
|
super(Rdcr, self).__init__(dest, \
|
||||||
src1, "NUM_INTREGS", flags, dataSize)
|
src1, "NUM_INTREGS", flags, dataSize)
|
||||||
code = '''
|
code = '''
|
||||||
if (dest == 1 || (dest > 4 && dest < 8) || (dest > 8)) {
|
if (src1 == 1 || (src1 > 4 && src1 < 8) || (src1 > 8)) {
|
||||||
fault = new InvalidOpcode();
|
fault = new InvalidOpcode();
|
||||||
} else {
|
} else {
|
||||||
DestReg = ControlSrc1;
|
DestReg = ControlSrc1;
|
||||||
|
|
Loading…
Reference in a new issue