From: Thomas Huth <huth@tuxfamily.org>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH v2 02/34] next-cube: remove overlap between next.dma and next.mmio memory regions
Date: Fri, 13 Dec 2024 20:37:22 +0100 [thread overview]
Message-ID: <20241213203722.62490442@tpx1> (raw)
In-Reply-To: <20241212114620.549285-3-mark.cave-ayland@ilande.co.uk>
Hi Mark!
Am Thu, 12 Dec 2024 11:45:48 +0000
schrieb Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>:
> Change the start of the next.mmio memory region so that it follows on directly
> after the next.dma memory region. Increase the address offsets in
> next_mmio_read() and next_mmio_write(), and reduce the size of the next.mmio
> memory region accordingly.
>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> hw/m68k/next-cube.c | 28 ++++++++++++++--------------
> 1 file changed, 14 insertions(+), 14 deletions(-)
>
> diff --git a/hw/m68k/next-cube.c b/hw/m68k/next-cube.c
> index 0418fbc8aa..550e7f0b0a 100644
> --- a/hw/m68k/next-cube.c
> +++ b/hw/m68k/next-cube.c
> @@ -266,23 +266,23 @@ static uint64_t next_mmio_read(void *opaque, hwaddr addr, unsigned size)
> uint64_t val;
>
> switch (addr) {
> - case 0x7000:
> + case 0x2000: /* 0x2005000 */
> /* DPRINTF("Read INT status: %x\n", s->int_status); */
> val = s->int_status;
> break;
>
> - case 0x7800:
> + case 0x2800: /* 0x2007800 */
> DPRINTF("MMIO Read INT mask: %x\n", s->int_mask);
> val = s->int_mask;
> break;
>
> - case 0xc000 ... 0xc003:
> - val = extract32(s->scr1, (4 - (addr - 0xc000) - size) << 3,
> + case 0x7000 ... 0x7003: /* 0x200c000 */
> + val = extract32(s->scr1, (4 - (addr - 0x7000) - size) << 3,
> size << 3);
> break;
>
> - case 0xd000 ... 0xd003:
> - val = extract32(s->scr2, (4 - (addr - 0xd000) - size) << 3,
> + case 0x8000 ... 0x8003: /* 0x200d000 */
> + val = extract32(s->scr2, (4 - (addr - 0x8000) - size) << 3,
> size << 3);
> break;
>
> @@ -301,25 +301,25 @@ static void next_mmio_write(void *opaque, hwaddr addr, uint64_t val,
> NeXTPC *s = NEXT_PC(opaque);
>
> switch (addr) {
> - case 0x7000:
> + case 0x2000: /* 0x2005000 */
Comment should be /* 0x2007000 */ instead.
With that fixed:
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
next prev parent reply other threads:[~2024-12-13 19:44 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 11:45 [PATCH v2 00/34] next-cube: more tidy-ups and improvements Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 01/34] next-cube: remove 0x14020 dummy value from next_mmio_read() Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 02/34] next-cube: remove overlap between next.dma and next.mmio memory regions Mark Cave-Ayland
2024-12-13 19:37 ` Thomas Huth [this message]
2024-12-14 20:59 ` Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 03/34] next-cube: create new next.scsi container memory region Mark Cave-Ayland
2024-12-14 5:26 ` Thomas Huth
2024-12-14 12:39 ` Philippe Mathieu-Daudé
2024-12-12 11:45 ` [PATCH v2 04/34] next-cube: move next_scsi_init() to next_pc_realize() Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 05/34] next-cube: introduce next_pc_init() object init function Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 06/34] next-cube: introduce next-scsi device Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 07/34] next-cube: move SCSI CSRs from next-pc to the " Mark Cave-Ayland
2024-12-14 5:28 ` Thomas Huth
2024-12-12 11:45 ` [PATCH v2 08/34] next-cube: move SCSI 4020/4021 logic from next-pc device to " Mark Cave-Ayland
2024-12-14 5:32 ` Thomas Huth
2024-12-12 11:45 ` [PATCH v2 09/34] next-cube: move floppy disk MMIO to separate memory region in next-pc Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 10/34] next-cube: map ESCC registers as a subregion of the next.scr memory region Mark Cave-Ayland
2024-12-14 12:42 ` Philippe Mathieu-Daudé
2024-12-12 11:45 ` [PATCH v2 11/34] next-cube: move ESCC to be QOM child of next-pc device Mark Cave-Ayland
2024-12-14 5:50 ` Thomas Huth
2024-12-14 6:10 ` Thomas Huth
2024-12-14 12:45 ` Philippe Mathieu-Daudé
2024-12-14 21:32 ` Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 12/34] next-cube: move timer MMIO to separate memory region on " Mark Cave-Ayland
2024-12-14 13:29 ` Philippe Mathieu-Daudé
2024-12-14 22:09 ` Mark Cave-Ayland
2024-12-12 11:45 ` [PATCH v2 13/34] next-cube: move en ethernet " Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 14/34] next-cube: add empty slots for unknown accesses to next.scr memory region Mark Cave-Ayland
2024-12-14 13:32 ` Philippe Mathieu-Daudé
2024-12-14 22:27 ` Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 15/34] next-cube: remove unused " Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 16/34] next-cube: rearrange NeXTState declarations to improve readability Mark Cave-Ayland
2024-12-14 13:34 ` Philippe Mathieu-Daudé
2024-12-12 11:46 ` [PATCH v2 17/34] next-cube: convert next-pc device to use Resettable interface Mark Cave-Ayland
2024-12-14 13:34 ` Philippe Mathieu-Daudé
2024-12-12 11:46 ` [PATCH v2 18/34] next-cube: rename typedef struct NextRtc to NeXTRTC Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 19/34] next-cube: use qemu_irq to drive int_status in next_scr2_rtc_update() Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 20/34] next-cube: separate rtc read and write shift logic Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 21/34] next-cube: always use retval to return rtc read values Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 22/34] next-cube: use named gpio to set RTC data bit in scr2 Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 23/34] next-cube: use named gpio to read " Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 24/34] next-cube: don't use rtc phase value of -1 Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 25/34] next-cube: QOMify NeXTRTC Mark Cave-Ayland
2024-12-14 6:08 ` Thomas Huth
2024-12-14 21:30 ` Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 26/34] next-cube: move reset of next-rtc fields from next-pc to next-rtc Mark Cave-Ayland
2024-12-14 13:41 ` Philippe Mathieu-Daudé
2024-12-12 11:46 ` [PATCH v2 27/34] next-cube: move rtc-data-in gpio from next-pc to next-rtc device Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 28/34] next-cube: use named gpio output for next-rtc data Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 29/34] next-cube: add rtc-cmd-reset named gpio to reset the rtc state machine Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 30/34] next-cube: add rtc-power-out named gpio to trigger the NEXT_PWR_I interrupt Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 31/34] next-cube: move next_rtc_cmd_is_write() and next_rtc_data_in_irq() functions Mark Cave-Ayland
2024-12-14 6:14 ` Thomas Huth
2024-12-12 11:46 ` [PATCH v2 32/34] next-cube: rename old_scr2 and scr2_2 in next_scr2_rtc_update() Mark Cave-Ayland
2024-12-12 11:46 ` [PATCH v2 33/34] next-cube: add my copyright to the top of the file Mark Cave-Ayland
2024-12-14 13:41 ` Philippe Mathieu-Daudé
2024-12-12 11:46 ` [PATCH v2 34/34] next-cube: replace boiler-plate GPL 2.0 or later license text with SPDX identifier Mark Cave-Ayland
2024-12-12 17:28 ` Daniel P. Berrangé
2024-12-14 20:38 ` Mark Cave-Ayland
2024-12-16 10:38 ` Daniel P. Berrangé
2024-12-16 11:17 ` Thomas Huth
2024-12-22 12:56 ` Mark Cave-Ayland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241213203722.62490442@tpx1 \
--to=huth@tuxfamily.org \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.