[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 08/15] acpi: move aml builder code for floppy device
From: |
Thomas Huth |
Subject: |
Re: [PATCH v5 08/15] acpi: move aml builder code for floppy device |
Date: |
Thu, 14 May 2020 07:51:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 13/05/2020 22.43, John Snow wrote:
>
>
> On 5/7/20 10:05 AM, Philippe Mathieu-Daudé wrote:
>> +Hervé
>>
>> On 5/7/20 3:16 PM, Gerd Hoffmann wrote:
>>> Signed-off-by: Gerd Hoffmann <address@hidden>
>>> Reviewed-by: Igor Mammedov <address@hidden>
>>> ---
>>> hw/block/fdc.c | 83 ++++++++++++++++++++++++++++++++++++++++++++
>
> oh no...
>
>>> hw/i386/acpi-build.c | 83 --------------------------------------------
>>> stubs/cmos.c | 7 ++++
>>> stubs/Makefile.objs | 1 +
>>> 4 files changed, 91 insertions(+), 83 deletions(-)
>>> create mode 100644 stubs/cmos.c
>>>
>>> diff --git a/hw/block/fdc.c b/hw/block/fdc.c
>>> index 9628cc171ef8..40faa088b5f7 100644
>>> --- a/hw/block/fdc.c
>>> +++ b/hw/block/fdc.c
>>> @@ -32,6 +32,8 @@
>>> #include "qapi/error.h"
>>> #include "qemu/error-report.h"
>>> #include "qemu/timer.h"
>>> +#include "hw/i386/pc.h"
>>
>> I'd rather not see this target-specific header used in the generic
>> device model... The culprit seems cmos_get_fd_drive_type(). Is the value
>> really PC specific?
>>
>> Hervé, do you know if such info & RTC nvram layout is used in other arch?
>>
>
> do we need pc-only floppy code somewhere to keep the makefile pure?
Yes, please put this into a separate file that only gets build if the
corresponding CONFIG switches are set. That way you should also get
along without that new stubs/cmos.c file.
Thomas
- [PATCH v5 03/15] acpi: rtc: use a single crs range, (continued)
- [PATCH v5 03/15] acpi: rtc: use a single crs range, Gerd Hoffmann, 2020/05/07
- [PATCH v5 02/15] acpi: move aml builder code for rtc device, Gerd Hoffmann, 2020/05/07
- [PATCH v5 04/15] acpi: serial: don't use _STA method, Gerd Hoffmann, 2020/05/07
- [PATCH v5 07/15] acpi: move aml builder code for parallel device, Gerd Hoffmann, 2020/05/07
- [PATCH v5 10/15] acpi: factor out fw_cfg_add_acpi_dsdt(), Gerd Hoffmann, 2020/05/07
- [PATCH v5 08/15] acpi: move aml builder code for floppy device, Gerd Hoffmann, 2020/05/07
- [PATCH v5 13/15] acpi: drop build_piix4_pm(), Gerd Hoffmann, 2020/05/07
[PATCH v5 11/15] acpi: simplify build_isa_devices_aml(), Gerd Hoffmann, 2020/05/07
[PATCH v5 14/15] acpi: q35: drop _SB.PCI0.ISA.LPCD opregion., Gerd Hoffmann, 2020/05/07
[PATCH v5 09/15] acpi: move aml builder code for i8042 (kbd+mouse) device, Gerd Hoffmann, 2020/05/07
[PATCH v5 12/15] acpi: drop serial/parallel enable bits from dsdt, Gerd Hoffmann, 2020/05/07