i8259: don't abort when trying to use level sensitive irqs
Ping.
Quoted 23 lines · Hervé Poussineau
This is a guest-triggerable error, as seen when using Xenix 2.3.4. Replace
hw_errorbyLOG_UNIMPL, so that guests have at least a chance to continue.Signed-off-by Hervé Poussineau <[email protected]>--- hw/intc/i8259.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/i8259.c +2
-1@@ -265,7 +265,8 @@ static void pic_ioport_write(void *opaque, hwaddr addr64, s->init4 = val &1 ; s->single_mode = val &2 ;if (val &0x08 ) { -hw_error ("level sensitive irq not supported" ); +qemu_log_mask (LOG_UNIMP , +"i8259: level sensitive irq not supported\n" ); } }else if (val &0x08 ) {if (val &0x04 ) {
Quoted 7 lines · Hervé Poussineau
Ping.
Quoted 4 lines · Hervé Poussineau
This is a guest-triggerable error, as seen when using Xenix 2.3.4. Replace
hw_errorbyLOG_UNIMPL, so that guests have at least a chance to continue.Signed-off-by Hervé Poussineau <[email protected]>
Is it just "a chance" or does Xenix actually work well with this applied?
Quoted 19 lines
Quoted 19 lines
--- hw/intc/i8259.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/i8259.c +2
-1@@ -265,7 +265,8 @@ static void pic_ioport_write(void *opaque, hwaddr addr64, s->init4 = val &1 ; s->single_mode = val &2 ;if (val &0x08 ) { -hw_error ("level sensitive irq not supported" ); +qemu_log_mask (LOG_UNIMP , +"i8259: level sensitive irq not supported\n" ); } }else if (val &0x08 ) {if (val &0x04 ) {
Quoted 11 lines · Michael S. Tsirkin
Quoted 7 lines · Hervé Poussineau
Ping.
Quoted 4 lines · Hervé Poussineau
This is a guest-triggerable error, as seen when using Xenix 2.3.4. Replace
hw_errorbyLOG_UNIMPL, so that guests have at least a chance to continue.Signed-off-by Hervé Poussineau <[email protected]>Is it just "a chance" or does Xenix actually work well with this applied?
Yes,
With this patch, I can install and use Xenix 2.3.4a without any problem.
I can also start installation of Xenix 2.3.4q, but it fails due to not finding an hard disk.
Regards,
Hervé
Quoted 22 lines
Quoted 21 lines
Quoted 21 lines
--- hw/intc/i8259.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/i8259.c +2
-1@@ -265,7 +265,8 @@ static void pic_ioport_write(void *opaque, hwaddr addr64, s->init4 = val &1 ; s->single_mode = val &2 ;if (val &0x08 ) { -hw_error ("level sensitive irq not supported" ); +qemu_log_mask (LOG_UNIMP , +"i8259: level sensitive irq not supported\n" ); } }else if (val &0x08 ) {if (val &0x04 ) {
Quoted 13 lines · Hervé Poussineau
Quoted 11 lines · Michael S. Tsirkin
Quoted 7 lines · Hervé Poussineau
Ping.
Quoted 4 lines · Hervé Poussineau
This is a guest-triggerable error, as seen when using Xenix 2.3.4. Replace
hw_errorbyLOG_UNIMPL, so that guests have at least a chance to continue.Signed-off-by Hervé Poussineau <[email protected]>Is it just "a chance" or does Xenix actually work well with this applied?
Quoted 8 lines
Yes,
With this patch, I can install and use Xenix 2.3.4a without any problem. I can also start installation of Xenix 2.3.4q, but it fails due to not finding an hard disk.Regards,
Hervé
Thanks!
I'll pick this patch up when I'm back online.
Quoted 23 lines
Quoted 22 lines
Quoted 21 lines
Quoted 21 lines
--- hw/intc/i8259.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/i8259.c +2
-1@@ -265,7 +265,8 @@ static void pic_ioport_write(void *opaque, hwaddr addr64, s->init4 = val &1 ; s->single_mode = val &2 ;if (val &0x08 ) { -hw_error ("level sensitive irq not supported" ); +qemu_log_mask (LOG_UNIMP , +"i8259: level sensitive irq not supported\n" ); } }else if (val &0x08 ) {if (val &0x04 ) {