qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/3] hw/misc/mac_via: Factor generic via_irq_request() out


From: Mark Cave-Ayland
Subject: Re: [PATCH 0/3] hw/misc/mac_via: Factor generic via_irq_request() out
Date: Thu, 15 Oct 2020 21:50:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

On 13/10/2020 21:49, Philippe Mathieu-Daudé wrote:

The same logic is used in 4 different places:
- via1_irq_request()
- via2_irq_request()
- via1_VBL()
- via1_one_second()

Extract the common function and reuse it.

Philippe Mathieu-Daudé (3):
   hw/misc/mac_via: Make generic via_irq_request() from
     via1_irq_request()
   hw/misc/mac_via: Replace via2_irq_request() with via_irq_request()
   hw/misc/mac_via: Use via_irq_request() in via1_VBL(),
     via1_one_second()

  hw/misc/mac_via.c | 59 +++++++++++++++--------------------------------
  1 file changed, 18 insertions(+), 41 deletions(-)

Whilst I can see the advantage of consolidating the logic in via_irq_request(), I'd still like to keep the above 4 functions as wrappers for now since they are a great aid with current work debugging Linux and MacOS. Perhaps for now the functions above could act as thin wrappers on your version of via_irq_request(), or alternatively this could be something to revisit once the m68k/q800 emulation has matured further?


ATB,

Mark.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]