Skip to content

Commit 7c89e22

Browse files
committed
Merge tag 'pull-request-2024-12-29' of https://gitlab.com/huth/qemu into staging
* Rework "next-cube" to bring it up-to-date with current coding standards/APIs * Remove overlapping memory regions of the "next-cube" machine * Encapsulate the next-cube SCSI related code into a separate device * QOM-ify the next-rtc device * Declare m68k devices as big endian instead of native endian * Disable the CD-ROM drive for the next-cube machine # -----BEGIN PGP SIGNATURE----- # # iQJHBAABCAAxFiEEJ7iIR+7gJQEY8+q5LtnXdP5wLbUFAmdw93wTHGh1dGhAdHV4 # ZmFtaWx5Lm9yZwAKCRAu2dd0/nAttdVOEACEqPMTb5cea/fsI6x29dxx0btnNZaB # MhN72qmmGS1GMr03u6hGMrIPgkFa/HQL86SAUxWDt4qg3XJKpJ8p9KLqFm393Dgi # UEZnvzhX2NP23Cf4M0EaHSAeQOfaYdsgOzivo+7fQUIkpXaRpmu+3VIjvhUESSOb # 37p1kqdjXf73t7aUMBXA2hCZctm+vOOKdJd25MfrhZp6Yvxly90P2QW+lKzFBUIp # d2uyZ/FaBXKiGWHMTmpbloIvL6sP8ag/e+deRfKQlBlC3lVpTyREvAKoNret5Rgt # uYQ1Erbo7Bz8BKrwFrlObbGxn1WoaoCmiPJGzPtn8mfQ33QwS8B3+Np5OfgvinAR # B6YBXNBIenjUFgJKY9jSXy4IlzfFc4mMKn6kgTv+y9srf9Np1EgmkYuOXxxytPzP # fE+blTWXgj6EvhUYNtqDgaN0NdW+4YSbr2Lzy/ZNGX7eLJ5S9PZdSU7gb2T+2y2N # sdAkPiXP1lmTzPkG9gzQ0EljO36gOgSpKWjxf72NvluVGoTBLtKqB8NmVO1YnyVC # 0/QA/SxZGjsT8MMlhjheWg+lCKRjzTpjfw4C8CvukSsiOHX4pnX9yRreJ2s7z6W3 # 26SxK1nIvn3VODXhXAgB23zHZlgk/lWSJXUuBOsnAk5YMgy7KyDn6r92FNBhj+e2 # 3O0SEi9HC/wUKw== # =js2G # -----END PGP SIGNATURE----- # gpg: Signature made Sun 29 Dec 2024 02:17:16 EST # gpg: using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5 # gpg: issuer "[email protected]" # gpg: Good signature from "Thomas Huth <[email protected]>" [full] # gpg: aka "Thomas Huth <[email protected]>" [full] # gpg: aka "Thomas Huth <[email protected]>" [full] # gpg: aka "Thomas Huth <[email protected]>" [unknown] # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3 EAB9 2ED9 D774 FE70 2DB5 * tag 'pull-request-2024-12-29' of https://gitlab.com/huth/qemu: (35 commits) next-cube: add my copyright to the top of the file next-cube: rename old_scr2 and scr2_2 in next_scr2_rtc_update() next-cube: move next_rtc_cmd_is_write() and next_rtc_data_in_irq() functions next-cube: add rtc-power-out named gpio to trigger the NEXT_PWR_I interrupt next-cube: add rtc-cmd-reset named gpio to reset the rtc state machine next-cube: use named gpio output for next-rtc data next-cube: move rtc-data-in gpio from next-pc to next-rtc device next-cube: move reset of next-rtc fields from next-pc to next-rtc next-cube: QOMify NeXTRTC next-cube: don't use rtc phase value of -1 next-cube: use named gpio to read RTC data bit in scr2 next-cube: use named gpio to set RTC data bit in scr2 next-cube: always use retval to return rtc read values next-cube: separate rtc read and write shift logic next-cube: use qemu_irq to drive int_status in next_scr2_rtc_update() next-cube: rename typedef struct NextRtc to NeXTRTC next-cube: convert next-pc device to use Resettable interface next-cube: rearrange NeXTState declarations to improve readability next-cube: remove unused next.scr memory region next-cube: add empty slots for unknown accesses to next.scr memory region ... Signed-off-by: Stefan Hajnoczi <[email protected]>
2 parents 2b7a80e + ee58d28 commit 7c89e22

File tree

6 files changed

+665
-370
lines changed

6 files changed

+665
-370
lines changed

hw/m68k/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ config NEXTCUBE
1818
depends on M68K
1919
select FRAMEBUFFER
2020
select ESCC
21+
select EMPTY_SLOT
2122

2223
config Q800
2324
bool

hw/m68k/mcf5206.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ static const MemoryRegionOps m5206_mbar_ops = {
582582
.write = m5206_mbar_writefn,
583583
.valid.min_access_size = 1,
584584
.valid.max_access_size = 4,
585-
.endianness = DEVICE_NATIVE_ENDIAN,
585+
.endianness = DEVICE_BIG_ENDIAN,
586586
};
587587

588588
static void mcf5206_mbar_realize(DeviceState *dev, Error **errp)

hw/m68k/mcf5208.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static uint64_t m5208_timer_read(void *opaque, hwaddr addr,
155155
static const MemoryRegionOps m5208_timer_ops = {
156156
.read = m5208_timer_read,
157157
.write = m5208_timer_write,
158-
.endianness = DEVICE_NATIVE_ENDIAN,
158+
.endianness = DEVICE_BIG_ENDIAN,
159159
};
160160

161161
static uint64_t m5208_sys_read(void *opaque, hwaddr addr,
@@ -192,7 +192,7 @@ static void m5208_sys_write(void *opaque, hwaddr addr,
192192
static const MemoryRegionOps m5208_sys_ops = {
193193
.read = m5208_sys_read,
194194
.write = m5208_sys_write,
195-
.endianness = DEVICE_NATIVE_ENDIAN,
195+
.endianness = DEVICE_BIG_ENDIAN,
196196
};
197197

198198
static uint64_t m5208_rcm_read(void *opaque, hwaddr addr,
@@ -224,7 +224,7 @@ static void m5208_rcm_write(void *opaque, hwaddr addr,
224224
static const MemoryRegionOps m5208_rcm_ops = {
225225
.read = m5208_rcm_read,
226226
.write = m5208_rcm_write,
227-
.endianness = DEVICE_NATIVE_ENDIAN,
227+
.endianness = DEVICE_BIG_ENDIAN,
228228
};
229229

230230
static void mcf5208_sys_init(MemoryRegion *address_space, qemu_irq *pic,

hw/m68k/mcf_intc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void mcf_intc_reset(DeviceState *dev)
166166
static const MemoryRegionOps mcf_intc_ops = {
167167
.read = mcf_intc_read,
168168
.write = mcf_intc_write,
169-
.endianness = DEVICE_NATIVE_ENDIAN,
169+
.endianness = DEVICE_BIG_ENDIAN,
170170
};
171171

172172
static void mcf_intc_instance_init(Object *obj)

0 commit comments

Comments
 (0)