summaryrefslogtreecommitdiffstats
path: root/func.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2020-02-29 11:07:13 +0100
committerJiri Gaisler <jiri@gaisler.se>2020-02-29 14:28:48 +0100
commit09ba9099c1562c4af1e2f624b9aa2692e563118b (patch)
tree2ae06e83b4f993e2e2e9a01f6b1bf9c982d55fa2 /func.c
parentAvoid reserved word sparc on SPARC hosts (diff)
downloadsis-09ba9099c1562c4af1e2f624b9aa2692e563118b.tar.bz2
Fix incorrect operation on big-endian hosts
Diffstat (limited to 'func.c')
-rw-r--r--func.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/func.c b/func.c
index e9ae888..23bc31a 100644
--- a/func.c
+++ b/func.c
@@ -890,8 +890,8 @@ disp_mem (addr, len)
p = (char *) mem;
for (j = 0; j < 16; j++)
{
- if (isprint (p[j ^ arch->endian]))
- putchar (p[j ^ arch->endian]);
+ if (isprint (p[j ^ arch->bswap]))
+ putchar (p[j ^ arch->bswap]);
else
putchar ('.');
}
@@ -1566,7 +1566,7 @@ mygetline (char **lineptr, size_t * n, FILE * stream)
#define COV_BT 8
#define COV_BNT 16
-unsigned char covram[0x01000000 / 4];
+unsigned char covram[RAM_SIZE / 4];
void
cov_start (int address)