diff options
author | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-06 23:19:03 +0000 |
---|---|---|
committer | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-06 23:19:03 +0000 |
commit | 0db74b0705eb27993d859493e7ee8c34d222a3e7 (patch) | |
tree | 6217d81b8d8e75e0ec724f9ce32502b1910aa52c /hw/etraxfs_ser.c | |
parent | 8983da70c408df3d2159f508d219e17e99396db9 (diff) |
ETRAX-FS: No need to decode the address anymore.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5897 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/etraxfs_ser.c')
-rw-r--r-- | hw/etraxfs_ser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/etraxfs_ser.c b/hw/etraxfs_ser.c index 78c449ec4d..4b9545f5fe 100644 --- a/hw/etraxfs_ser.c +++ b/hw/etraxfs_ser.c @@ -97,7 +97,7 @@ static uint32_t ser_readl (void *opaque, target_phys_addr_t addr) D(CPUState *env = s->env); uint32_t r = 0; - switch (addr & 0xfff) + switch (addr) { case RW_TR_CTRL: r = s->rw_tr_ctrl; @@ -150,7 +150,7 @@ ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value) unsigned char ch = value; D(CPUState *env = s->env); - switch (addr & 0xfff) + switch (addr) { case RW_TR_CTRL: D(printf("rw_tr_ctrl=%x\n", value)); |