qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH-for-9.1 09/18] hw/i386/pc: Remove PCMachineClass::enforce_ali


From: Thomas Huth
Subject: Re: [PATCH-for-9.1 09/18] hw/i386/pc: Remove PCMachineClass::enforce_aligned_dimm
Date: Wed, 6 Mar 2024 17:57:40 +0100
User-agent: Mozilla Thunderbird

On 05/03/2024 14.42, Philippe Mathieu-Daudé wrote:
PCMachineClass::enforce_aligned_dimm was only used by the
pc-i440fx-2.1 machine, which got removed. It is now always
true. Remove it, simplifying pc_get_device_memory_range().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  include/hw/i386/pc.h |  3 ---
  hw/i386/pc.c         | 14 +++-----------
  2 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index f051ddafca..bf1d6e99b4 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -74,8 +74,6 @@ typedef struct PCMachineState {
   *
   * Compat fields:
   *
- * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
- *                        backend's alignment value if provided
   * @acpi_data_size: Size of the chunk of memory at the top of RAM
   *                  for the BIOS ACPI tables and other BIOS
   *                  datastructures.
@@ -114,7 +112,6 @@ struct PCMachineClass {
      /* RAM / address space compat: */
      bool gigabyte_align;
      bool has_reserved_memory;
-    bool enforce_aligned_dimm;

This is also mentioned in a comment in tests/avocado/mem-addr-space-check.py ... it would be nice if you could update that, too.

 Thanks,
  Thomas





reply via email to

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