summaryrefslogtreecommitdiff
path: root/hw/etraxfs_ser.c
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-30 11:51:12 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-30 11:51:12 +0000
commitd27b2e5044b143f9e522d6c3e80f498eb083a618 (patch)
treebc31ec480e2fb9fe1ee1b0160ea8e07da791eb96 /hw/etraxfs_ser.c
parentd077b6f759d6758e0d2a80f053448f152ca2ba6d (diff)
Avoid refering to CRIS specific cpu-state to be able to use these blocks with other cores.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4806 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/etraxfs_ser.c')
-rw-r--r--hw/etraxfs_ser.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/hw/etraxfs_ser.c b/hw/etraxfs_ser.c
index bb971f8d2..11a0f2210 100644
--- a/hw/etraxfs_ser.c
+++ b/hw/etraxfs_ser.c
@@ -89,7 +89,7 @@ static void ser_update_irq(struct etrax_serial_t *s)
static uint32_t ser_readb (void *opaque, target_phys_addr_t addr)
{
D(CPUState *env = opaque);
- D(printf ("%s %x pc=%x\n", __func__, addr, env->pc));
+ D(printf ("%s %x\n", __func__, addr));
return 0;
}
@@ -132,7 +132,7 @@ static uint32_t ser_readl (void *opaque, target_phys_addr_t addr)
break;
default:
- D(printf ("%s %x p=%x\n", __func__, addr, env->pc));
+ D(printf ("%s %x\n", __func__, addr));
break;
}
return r;
@@ -143,7 +143,7 @@ ser_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)
{
D(struct etrax_serial_t *s = opaque);
D(CPUState *env = s->env);
- D(printf ("%s %x %x pc=%x\n", __func__, addr, value, env->pc));
+ D(printf ("%s %x %x\n", __func__, addr, value));
}
static void
ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
@@ -181,8 +181,7 @@ ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
s->rw_intr_mask = value;
break;
default:
- D(printf ("%s %x %x pc=%x\n",
- __func__, addr, value, env->pc));
+ D(printf ("%s %x %x\n", __func__, addr, value));
break;
}
ser_update_irq(s);