summaryrefslogtreecommitdiff
path: root/hw/ppc.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2013-01-17 11:32:21 +0100
committerAlexander Graf <agraf@suse.de>2013-01-18 19:06:57 +0100
commite49798b1bd7657722080126bfd5e787efdb3bc23 (patch)
treeceab0b09a3aee7312aa6f43c28839d7e3feb68ca /hw/ppc.c
parentd3dccee187ffeacec1a38ed288c112ffa0e3b513 (diff)
downloadqemu-e49798b1bd7657722080126bfd5e787efdb3bc23.tar.gz
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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/ppc.c b/hw/ppc.c
index e473f9e962..1fce604c73 100644
--- a/hw/ppc.c
+++ b/hw/ppc.c
@@ -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 */