Commit 0db74b0705eb27993d859493e7ee8c34d222a3e7
1 parent
8983da70
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
Showing
1 changed file
with
2 additions
and
2 deletions
hw/etraxfs_ser.c
... | ... | @@ -97,7 +97,7 @@ static uint32_t ser_readl (void *opaque, target_phys_addr_t addr) |
97 | 97 | D(CPUState *env = s->env); |
98 | 98 | uint32_t r = 0; |
99 | 99 | |
100 | - switch (addr & 0xfff) | |
100 | + switch (addr) | |
101 | 101 | { |
102 | 102 | case RW_TR_CTRL: |
103 | 103 | r = s->rw_tr_ctrl; |
... | ... | @@ -150,7 +150,7 @@ ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value) |
150 | 150 | unsigned char ch = value; |
151 | 151 | D(CPUState *env = s->env); |
152 | 152 | |
153 | - switch (addr & 0xfff) | |
153 | + switch (addr) | |
154 | 154 | { |
155 | 155 | case RW_TR_CTRL: |
156 | 156 | D(printf("rw_tr_ctrl=%x\n", value)); | ... | ... |