summaryrefslogtreecommitdiff
path: root/sim/h8300
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2006-07-19 06:27:04 +0000
committerYoshinori Sato <ysato@users.sourceforge.jp>2006-07-19 06:27:04 +0000
commita99360b6dc71bb74cfe94ad3dda875d5e6f7e58a (patch)
tree6f117f41a76677d98480232504579969aff71166 /sim/h8300
parent02293c178287add1eb0bc1325e9323c34d664dee (diff)
downloadgdb-a99360b6dc71bb74cfe94ad3dda875d5e6f7e58a.tar.gz
compile.c (OBITOP): Bit address mask low three bit.
compile.c (decode): Fix warning.
Diffstat (limited to 'sim/h8300')
-rw-r--r--sim/h8300/ChangeLog5
-rw-r--r--sim/h8300/compile.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog
index 3e54a28e689..e2217706639 100644
--- a/sim/h8300/ChangeLog
+++ b/sim/h8300/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-13 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * compile.c (OBITOP): Bit address mask low three bit.
+ * compile.c (decode): Fix warning.
+
2006-06-13 Richard Earnshaw <rearnsha@arm.com>
* configure: Regenerated.
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index 3c11e8263d2..0d307577ae3 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)) \