qc, 9/ppc, 9/mtx: fix wrong if statements
This commit is contained in:
parent
d6eb7cc71c
commit
453ca8db43
3 changed files with 5 additions and 5 deletions
|
@ -220,7 +220,7 @@ trap(Ureg *ureg)
|
|||
if(user)
|
||||
up->dbgreg = ureg;
|
||||
|
||||
if(ureg->status & MSR_RI == 0)
|
||||
if((ureg->status & MSR_RI) == 0)
|
||||
print("double fault?: ecode = %d\n", ecode);
|
||||
|
||||
switch(ecode) {
|
||||
|
@ -490,7 +490,7 @@ dumpregs(Ureg *ur)
|
|||
|
||||
if(up) {
|
||||
print("registers for %s %ld\n", up->text, up->pid);
|
||||
if(ur->srr1 & MSR_PR == 0)
|
||||
if((ur->srr1 & MSR_PR) == 0)
|
||||
if(ur->usp < (ulong)up->kstack || ur->usp > (ulong)up->kstack+KSTACK)
|
||||
print("invalid stack ptr\n");
|
||||
}
|
||||
|
|
|
@ -167,7 +167,7 @@ trap(Ureg *ureg)
|
|||
cycles(&up->kentry);
|
||||
up->dbgreg = ureg;
|
||||
}
|
||||
if(ureg->status & MSR_RI == 0)
|
||||
if((ureg->status & MSR_RI) == 0)
|
||||
print("double fault?: ecode = %d\n", ecode);
|
||||
|
||||
switch(ecode) {
|
||||
|
@ -480,7 +480,7 @@ dumpregs(Ureg *ur)
|
|||
|
||||
if(up) {
|
||||
print("registers for %s %ld\n", up->text, up->pid);
|
||||
if(ur->srr1 & MSR_PR == 0)
|
||||
if((ur->srr1 & MSR_PR) == 0)
|
||||
if(ur->usp < (ulong)up->kstack || ur->usp > (ulong)up->kstack+KSTACK)
|
||||
print("invalid stack ptr\n");
|
||||
}
|
||||
|
|
|
@ -1522,7 +1522,7 @@ gopcode64(int o, Node *f1, Node *f2, Node *t)
|
|||
if(a1 == AGOK || a2 == AGOK)
|
||||
diag(Z, "bad in gopcode64 %O", o);
|
||||
if(f1->op == OCONST) {
|
||||
if(f2 != Z & f2 != t)
|
||||
if(f2 != Z && f2 != t)
|
||||
diag(Z, "bad const in gopcode64 %O", o);
|
||||
gins(a1, nod32const(f1->vconst), t->right);
|
||||
gins(a2, nod32const(f1->vconst>>32), t->left);
|
||||
|
|
Loading…
Reference in a new issue