[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 10/11] hw/intc/sh_intc: Clean up iomem region
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 10/11] hw/intc/sh_intc: Clean up iomem region |
Date: |
Wed, 27 Oct 2021 17:58:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
On 10/27/21 15:46, BALATON Zoltan wrote:
> Fix the size of the iomem region and rename it to "intc" from
> "interrupt-controller" which makes the info mtree output less wide as
> it is already too wide because of all the aliases. Also drop the
> format macro which was only used twice in close proximity so we can
> just use the literal string instead without a macro definition.
>
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> ---
> hw/intc/sh_intc.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
> - memory_region_init_io(&desc->iomem, NULL, &sh_intc_ops, desc,
> - "interrupt-controller", 0x100000000ULL);
> + memory_region_init_io(&desc->iomem, NULL, &sh_intc_ops, desc, "intc", 4);
Why the region size change from 4GB -> 4B? Did you mean '4 * GiB'?
- [PATCH v2 00/11] More SH4 clean ups, BALATON Zoltan, 2021/10/27
- [PATCH v2 04/11] hw/sh4/r2d: Use error_report instead of fprintf to stderr, BALATON Zoltan, 2021/10/27
- [PATCH v2 05/11] hw/char/sh_serial: Rename type sh_serial_state to SHSerialState, BALATON Zoltan, 2021/10/27
- [PATCH v2 01/11] hw/sh4: Fix a typo in a comment, BALATON Zoltan, 2021/10/27
- [PATCH v2 10/11] hw/intc/sh_intc: Clean up iomem region, BALATON Zoltan, 2021/10/27
- Re: [PATCH v2 10/11] hw/intc/sh_intc: Clean up iomem region,
Philippe Mathieu-Daudé <=
- [PATCH v2 11/11] hw/intc/sh_intc: Drop another useless macro, BALATON Zoltan, 2021/10/27
- [PATCH v2 02/11] hw//sh4: Use qemu_log instead of fprintf to stderr, BALATON Zoltan, 2021/10/27
- [PATCH v2 06/11] hw/char/sh_serial: QOM-ify, BALATON Zoltan, 2021/10/27
- [PATCH v2 07/11] hw/char/sh_serial: Add device id to trace output, BALATON Zoltan, 2021/10/27
- [PATCH v2 03/11] hw/sh4: Change debug printfs to traces, BALATON Zoltan, 2021/10/27