summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr.h
diff options
context:
space:
mode:
authorCédric Le Goater2019-03-21 15:49:07 +0100
committerDavid Gibson2019-04-26 02:41:23 +0200
commit64db6c70dc5d41cb7ad0c6c9d7a81a905a0d321b (patch)
tree041b4064ebfc5f3f898c7cc40f004797eb45f7fc /include/hw/ppc/spapr.h
parenthw/ppc/prep: Drop useless inclusion of "hw/input/i8042.h" (diff)
downloadqemu-64db6c70dc5d41cb7ad0c6c9d7a81a905a0d321b.tar.gz
qemu-64db6c70dc5d41cb7ad0c6c9d7a81a905a0d321b.tar.xz
qemu-64db6c70dc5d41cb7ad0c6c9d7a81a905a0d321b.zip
spapr/rtas: modify spapr_rtas_register() to remove RTAS handlers
Removing RTAS handlers will become necessary when the new pseries machine supporting multiple interrupt mode is introduced. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20190321144914.19934-9-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc/spapr.h')
-rw-r--r--include/hw/ppc/spapr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 02b5ce7e40..9331f5e0b9 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -675,6 +675,10 @@ typedef void (*spapr_rtas_fn)(PowerPCCPU *cpu, SpaprMachineState *sm,
uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets);
void spapr_rtas_register(int token, const char *name, spapr_rtas_fn fn);
+static inline void spapr_rtas_unregister(int token)
+{
+ spapr_rtas_register(token, NULL, NULL);
+}
target_ulong spapr_rtas_call(PowerPCCPU *cpu, SpaprMachineState *sm,
uint32_t token, uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets);