mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
s390x: Introduce a SCLPDevice pointer under the machine
Initialize directly SCLPDevice from the machine init handler and remove s390_sclp_init(). We will use the SCLPDevice pointer later to create the consoles. Signed-off-by: Cédric Le Goater <clg@redhat.com> Message-ID: <20240502131533.377719-2-clg@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
c990c1f35b
commit
b350f6c8ed
4 changed files with 8 additions and 13 deletions
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "hw/boards.h"
|
||||
#include "qom/object.h"
|
||||
#include "hw/s390x/sclp.h"
|
||||
|
||||
#define TYPE_S390_CCW_MACHINE "s390-ccw-machine"
|
||||
|
||||
|
@ -28,6 +29,8 @@ struct S390CcwMachineState {
|
|||
bool dea_key_wrap;
|
||||
bool pv;
|
||||
uint8_t loadparm[8];
|
||||
|
||||
SCLPDevice *sclp;
|
||||
};
|
||||
|
||||
#define S390_PTF_REASON_NONE (0x00 << 8)
|
||||
|
|
|
@ -221,8 +221,6 @@ static inline int sccb_data_len(SCCB *sccb)
|
|||
return be16_to_cpu(sccb->h.length) - sizeof(sccb->h);
|
||||
}
|
||||
|
||||
|
||||
void s390_sclp_init(void);
|
||||
void sclp_service_interrupt(uint32_t sccb);
|
||||
void raise_irq_cpu_hotplug(void);
|
||||
int sclp_service_call(S390CPU *cpu, uint64_t sccb, uint32_t code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue