Only perform access checks if 'check' is set.

Report unknown machine numbers.
Formatting tidy ups.
This commit is contained in:
Nick Clifton
2002-05-27 14:12:00 +00:00
parent f08caad151
commit 10b57fcbd7
7 changed files with 25 additions and 18 deletions

View File

@@ -64,7 +64,8 @@ GetWord (ARMul_State * state, ARMword address, int check)
ARMword **pagetable;
ARMword *pageptr;
XScale_check_memacc (state, &address, 0);
if (check)
XScale_check_memacc (state, &address, 0);
page = address >> PAGEBITS;
offset = (address & OFFSETBITS) >> 2;
@@ -99,7 +100,8 @@ PutWord (ARMul_State * state, ARMword address, ARMword data, int check)
ARMword **pagetable;
ARMword *pageptr;
XScale_check_memacc (state, &address, 1);
if (check)
XScale_check_memacc (state, &address, 1);
page = address >> PAGEBITS;
offset = (address & OFFSETBITS) >> 2;