mirror of
https://github.com/qemu/qemu.git
synced 2025-08-09 10:25:06 +00:00
Merge remote-tracking branch 'agraf/s390-for-upstream-1.3' into staging
* agraf/s390-for-upstream-1.3: sclp: Fix uninitialized var in handle_write_event_buf(). s390: Fix ram_size updating in machine init Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
commit
0a6b2ac0cf
@ -155,7 +155,6 @@ unsigned s390_del_running_cpu(CPUS390XState *env)
|
|||||||
static void s390_init(QEMUMachineInitArgs *args)
|
static void s390_init(QEMUMachineInitArgs *args)
|
||||||
{
|
{
|
||||||
ram_addr_t my_ram_size = args->ram_size;
|
ram_addr_t my_ram_size = args->ram_size;
|
||||||
ram_addr_t ram_size = args->ram_size;
|
|
||||||
const char *cpu_model = args->cpu_model;
|
const char *cpu_model = args->cpu_model;
|
||||||
const char *kernel_filename = args->kernel_filename;
|
const char *kernel_filename = args->kernel_filename;
|
||||||
const char *kernel_cmdline = args->kernel_cmdline;
|
const char *kernel_cmdline = args->kernel_cmdline;
|
||||||
|
@ -112,12 +112,13 @@ static uint16_t handle_write_event_buf(SCLPEventFacility *ef,
|
|||||||
SCLPEvent *event;
|
SCLPEvent *event;
|
||||||
SCLPEventClass *ec;
|
SCLPEventClass *ec;
|
||||||
|
|
||||||
|
rc = SCLP_RC_INVALID_FUNCTION;
|
||||||
|
|
||||||
QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) {
|
QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) {
|
||||||
DeviceState *qdev = kid->child;
|
DeviceState *qdev = kid->child;
|
||||||
event = (SCLPEvent *) qdev;
|
event = (SCLPEvent *) qdev;
|
||||||
ec = SCLP_EVENT_GET_CLASS(event);
|
ec = SCLP_EVENT_GET_CLASS(event);
|
||||||
|
|
||||||
rc = SCLP_RC_INVALID_FUNCTION;
|
|
||||||
if (ec->write_event_data &&
|
if (ec->write_event_data &&
|
||||||
ec->event_type() == event_buf->type) {
|
ec->event_type() == event_buf->type) {
|
||||||
rc = ec->write_event_data(event, event_buf);
|
rc = ec->write_event_data(event, event_buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user