diff options
author | Alexander Graf <agraf@suse.de> | 2013-01-17 11:32:21 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-01-18 19:06:57 +0100 |
commit | e49798b1bd7657722080126bfd5e787efdb3bc23 (patch) | |
tree | ceab0b09a3aee7312aa6f43c28839d7e3feb68ca /hw/ppc.c | |
parent | d3dccee187ffeacec1a38ed288c112ffa0e3b513 (diff) |
openpic: export e500 epr enable into a ppc.c function
Enabling and disabling the EPR capability (mpic_proxy) is a system
wide operation. As such, it belongs into the ppc.c file, since that's
where PPC specific machine wide logic happens.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc.c')
-rw-r--r-- | hw/ppc.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -428,6 +428,17 @@ void ppce500_irq_init(CPUPPCState *env) env->irq_inputs = (void **)qemu_allocate_irqs(&ppce500_set_irq, cpu, PPCE500_INPUT_NB); } + +/* Enable or Disable the E500 EPR capability */ +void ppce500_set_mpic_proxy(bool enabled) +{ + CPUPPCState *env; + + for (env = first_cpu; env != NULL; env = env->next_cpu) { + env->mpic_proxy = enabled; + } +} + /*****************************************************************************/ /* PowerPC time base and decrementer emulation */ |