diff options
| author | Cédric Le Goater <clg@kaod.org> | 2019-03-21 15:49:07 +0100 |
|---|---|---|
| committer | David Gibson <david@gibson.dropbear.id.au> | 2019-04-26 10:41:23 +1000 |
| commit | 64db6c70dc5d41cb7ad0c6c9d7a81a905a0d321b (patch) | |
| tree | 041b4064ebfc5f3f898c7cc40f004797eb45f7fc /include/hw/ppc/spapr.h | |
| parent | 7cbf3f113a52947a77b88132915f136bd8450e56 (diff) | |
| download | focaccia-qemu-64db6c70dc5d41cb7ad0c6c9d7a81a905a0d321b.tar.gz focaccia-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.h | 4 |
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); |