diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2006-07-19 06:27:04 +0000 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2006-07-19 06:27:04 +0000 |
commit | b86015eaa50eb4b44a7055a5114262e94040213a (patch) | |
tree | d8dd9a613de858677d049b4fbb646946278da869 /sim/h8300/compile.c | |
parent | 86cc68a8de702025017c162b653ddef376bec88d (diff) | |
download | gdb-b86015eaa50eb4b44a7055a5114262e94040213a.zip gdb-b86015eaa50eb4b44a7055a5114262e94040213a.tar.gz gdb-b86015eaa50eb4b44a7055a5114262e94040213a.tar.bz2 |
compile.c (OBITOP): Bit address mask low three bit.
compile.c (decode): Fix warning.
Diffstat (limited to 'sim/h8300/compile.c')
-rw-r--r-- | sim/h8300/compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 3c11e82..0d30757 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -1018,7 +1018,7 @@ decode (SIM_DESC sd, int addr, unsigned char *data, decoded_inst *dst) p->literal = 0; if (OP_KIND (q->how) == O_JSR || OP_KIND (q->how) == O_JMP) - if (lvalue (sd, p->type, p->reg, &p->type)) + if (lvalue (sd, p->type, p->reg, (unsigned int *)&p->type)) goto end; } else if ((x & MODE) == ABS) @@ -1050,7 +1050,7 @@ decode (SIM_DESC sd, int addr, unsigned char *data, decoded_inst *dst) p->literal = cst[opnum]; if (OP_KIND (q->how) == O_JSR || OP_KIND (q->how) == O_JMP) - if (lvalue (sd, p->type, p->reg, &p->type)) + if (lvalue (sd, p->type, p->reg, (unsigned int *)&p->type)) goto end; } else if ((x & MODE) == PCREL) @@ -1891,7 +1891,7 @@ case O (name, SB): \ goto end; \ if (fetch (sd, &code->src, &tmp)) \ goto end; \ - m = 1 << tmp; \ + m = 1 << (tmp & 7); \ op; \ if (s) \ if (store (sd, &code->dst,ea)) \ |