mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Avoid CRIS related warnings by Jan Kiszka.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4804 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a50f5b9186
commit
d297f464d3
5 changed files with 50 additions and 37 deletions
|
@ -154,11 +154,13 @@ mdio_attach(struct qemu_mdio *bus, struct qemu_phy *phy, unsigned int addr)
|
|||
bus->devs[addr & 0x1f] = phy;
|
||||
}
|
||||
|
||||
#ifdef USE_THIS_DEAD_CODE
|
||||
static void
|
||||
mdio_detach(struct qemu_mdio *bus, struct qemu_phy *phy, unsigned int addr)
|
||||
{
|
||||
bus->devs[addr & 0x1f] = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void mdio_read_req(struct qemu_mdio *bus)
|
||||
{
|
||||
|
@ -328,8 +330,8 @@ static uint32_t eth_rinvalid (void *opaque, target_phys_addr_t addr)
|
|||
{
|
||||
struct fs_eth *eth = opaque;
|
||||
CPUState *env = eth->env;
|
||||
cpu_abort(env, "Unsupported short access. reg=%x pc=%x.\n",
|
||||
addr, env->pc);
|
||||
cpu_abort(env, "Unsupported short access. reg=" TARGET_FMT_plx
|
||||
" pc=%x.\n", addr, env->pc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -359,8 +361,8 @@ eth_winvalid (void *opaque, target_phys_addr_t addr, uint32_t value)
|
|||
{
|
||||
struct fs_eth *eth = opaque;
|
||||
CPUState *env = eth->env;
|
||||
cpu_abort(env, "Unsupported short access. reg=%x pc=%x.\n",
|
||||
addr, env->pc);
|
||||
cpu_abort(env, "Unsupported short access. reg=" TARGET_FMT_plx
|
||||
" pc=%x.\n", addr, env->pc);
|
||||
}
|
||||
|
||||
static void eth_update_ma(struct fs_eth *eth, int ma)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue