public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b766e2b
)
Fix: setxx instructions should only accept byte registers
author
ceriel
<none@none>
Tue, 12 Sep 1995 12:08:42 +0000
(12:08 +0000)
committer
ceriel
<none@none>
Tue, 12 Sep 1995 12:08:42 +0000
(12:08 +0000)
mach/i386/as/mach4.c
patch
|
blob
|
history
diff --git
a/mach/i386/as/mach4.c
b/mach/i386/as/mach4.c
index
24ec29d
..
711c3c7
100644
(file)
--- a/
mach/i386/as/mach4.c
+++ b/
mach/i386/as/mach4.c
@@
-129,7
+129,11
@@
oper : NOOP_1
emit2((int)($2.val));
}
| SETCC ea_2
- { emit1(0xF); emit1($1|0x90); ea_2(0);}
+ { if (reg_2 & (IS_R32|IS_RSEG)) {
+ serror("register error");
+ }
+ emit1(0xF); emit1($1|0x90); ea_2(0);
+ }
| XCHG ea_ea
{ xchg($1);}
| TEST ea_ea