From 5579b860db981c2df4a21a3f9ce3140c8d51323d Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 18 Jan 2005 20:17:28 +0000 Subject: check for lack of registers --- src/cmd/acid/exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd') 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); -- cgit v1.2.3