aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acid
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-18 20:17:28 +0000
committerrsc <devnull@localhost>2005-01-18 20:17:28 +0000
commit5579b860db981c2df4a21a3f9ce3140c8d51323d (patch)
treee746b32f0a02382348fbbdd5460f36ea020452cf /src/cmd/acid
parent2e49032b852999a498b1250a503aa46ae20340ab (diff)
downloadplan9port-5579b860db981c2df4a21a3f9ce3140c8d51323d.tar.gz
plan9port-5579b860db981c2df4a21a3f9ce3140c8d51323d.tar.bz2
plan9port-5579b860db981c2df4a21a3f9ce3140c8d51323d.zip
check for lack of registers
Diffstat (limited to 'src/cmd/acid')
-rw-r--r--src/cmd/acid/exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/acid/exec.c b/src/cmd/acid/exec.c
index 1d5b231a..edf2690e 100644
--- a/src/cmd/acid/exec.c
+++ b/src/cmd/acid/exec.c
@@ -219,7 +219,7 @@ regbyoff(ulong addr)
int
xget1(Map *m, ulong addr, u8int *a, int n)
{
- if(addr < 0x100)
+ if(addr < 0x100 && correg)
return lget1(m, correg, locreg(regbyoff(addr)), a, n);
else
return get1(m, addr, a, n);
@@ -228,7 +228,7 @@ xget1(Map *m, ulong addr, u8int *a, int n)
int
xget2(Map *m, ulong addr, u16int *a)
{
- if(addr < 0x100)
+ if(addr < 0x100 && correg)
return lget2(m, correg, locreg(regbyoff(addr)), a);
else
return get2(m, addr, a);
@@ -237,7 +237,7 @@ xget2(Map *m, ulong addr, u16int *a)
int
xget4(Map *m, ulong addr, u32int *a)
{
- if(addr < 0x100)
+ if(addr < 0x100 && correg)
return lget4(m, correg, locreg(regbyoff(addr)), a);
else
return get4(m, addr, a);
@@ -246,7 +246,7 @@ xget4(Map *m, ulong addr, u32int *a)
int
xget8(Map *m, ulong addr, u64int *a)
{
- if(addr < 0x100)
+ if(addr < 0x100 && correg)
return lget8(m, correg, locreg(regbyoff(addr)), a);
else
return get8(m, addr, a);