Re: NetBSD and libfdt (was: Re: MSYS2 and libfdt)

2023-01-25 Thread Nick Hudson
hi, On 24/01/2023 11:27, Thomas Huth wrote: On 24/01/2023 10.20, Thomas Huth wrote: [...] On Thu, Jan 19, 2023 at 12:31 PM Thomas Huth wrote:     Hi all, in some spare minutes, I started playing with a patch to try to remove the dtc submodule from the QEMU git repository - according to ht

[PATCH] hw/net: e1000e: Clear ICR on read when using non MSI-X interrupts

2022-02-10 Thread Nick Hudson
In section 7.4.3 of the 82574 datasheet it states that "In systems that do not support MSI-X, reading the ICR register clears it's bits..." Some OSes rely on this. Signed-off-by: Nick Hudson --- hw/net/e1000e_core.c | 5 + hw/net/trace-events | 1 + 2 files change

[PATCH v2] hw/net: e1000e: Clear ICR on read when using non MSI-X interrupts

2022-02-12 Thread Nick Hudson
In section 7.4.3 of the 82574 datasheet it states that "In systems that do not support MSI-X, reading the ICR register clears it's bits..." Some OSes rely on this. Signed-off-by: Nick Hudson --- hw/net/e1000e_core.c | 5 + hw/net/trace-events | 1 + 2 files change

[Qemu-devel] [PATCH v3] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2018-12-11 Thread Nick Hudson
have occupied. Clarify the load_uimage API to state the passing of a load address when an image doesn't specify one, or when loading a ramdisk is expected. Adjust callers of load_uimage, etc. Signed-off-by: Nick Hudson ---  hw/arm/boot.c  |  8 +---  hw/core/loader.c  

[Qemu-devel] [PATCH] Support u-boot noload images for arm as used by NetBSD/evbarm GENERIC kernel.

2018-11-07 Thread Nick Hudson
noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point.  Fake up a hdr so the kernel image is loaded at the right address and the entry point is adjusted appropriately Signed-off-by: Nick Hudson ---  hw/arm/boot.c |  8

Re: [Qemu-devel] [PATCH] Support u-boot noload images for arm as used by NetBSD/evbarm GENERIC kernel.

2018-11-15 Thread Nick Hudson
ping On 07/11/2018 13:19, Nick Hudson wrote: noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point.  Fake up a hdr so the kernel image is loaded at the right address and the entry point is adjusted appropriately Signed-off-by

Re: [Qemu-devel] [PATCH] Support u-boot noload images for arm as used by NetBSD/evbarm GENERIC kernel.

2018-11-16 Thread Nick Hudson
On 16/11/2018 14:34, Peter Maydell wrote: On 7 November 2018 at 13:19, Nick Hudson wrote: noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point. Fake up a hdr so the kernel image is loaded at the right address and the entry

[Qemu-devel] [PATCH v2] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2018-11-29 Thread Nick Hudson
have occupied. Update the load_uimage API to allow passing of load address when an image doesn't specify one. Signed-off-by: Nick Hudson --- hw/arm/boot.c | 8 +--- hw/core/loader.c | 15 --- hw/core/uboot_image.h | 1 + include/hw/loader.h | 3 ++- 4 files ch

Re: [Qemu-devel] [PATCH v2] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2018-12-01 Thread Nick Hudson
On 30/11/2018 17:18, Peter Maydell wrote: On Thu, 29 Nov 2018 at 20:22, Nick Hudson wrote: noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point. Fake up a hdr so the kernel image is loaded at the right address and the entry

Re: [Qemu-devel] [PATCH v3] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2018-12-21 Thread Nick Hudson
ping On 11/12/2018 12:27, Nick Hudson wrote: noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point.  Fake up a hdr so the kernel image is loaded at the right address and the entry point is adjusted appropriately. The bootloader

Re: [Qemu-devel] [PATCH v3] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2019-01-03 Thread Nick Hudson
On 03/01/2019 16:20, Peter Maydell wrote: > On Tue, 11 Dec 2018 at 12:27, Nick Hudson wrote: >> >> >> noload kernels are loaded with the u-boot image header and as a result >> the header size needs adding to the entry point. Fake up a hdr so the >> kernel ima

Re: [Qemu-devel] [PATCH v3] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2019-01-03 Thread Nick Hudson
On 03/01/2019 17:27, Peter Maydell wrote: On Thu, 3 Jan 2019 at 16:50, Nick Hudson wrote: On 03/01/2019 16:20, Peter Maydell wrote: On Tue, 11 Dec 2018 at 12:27, Nick Hudson wrote: --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -30,8 +30,9 @@ * Documentation/arm/Booting and

[Qemu-devel] [PATCH v4] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2019-01-06 Thread Nick Hudson
noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point. Fake up a hdr so the kernel image is loaded at the right address and the entry point is adjusted appropriately. The default location for the uboot file is 32MiB above bottom o

Re: [Qemu-devel] [PATCH v4] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2019-01-06 Thread Nick Hudson
On 06/01/2019 22:56, no-re...@patchew.org wrote: Patchew URL: https://patchew.org/QEMU/d19529f5-841e-ea06-fe7d-86ccfd528...@gmail.com/ Hi, This series seems to have some coding style problems. See output below for more information: The files being touched have lots of coding style probl

Re: [Qemu-devel] [PATCH v4] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2019-01-07 Thread Nick Hudson
Thanks for the comments. On 07/01/2019 00:33, BALATON Zoltan wrote: On Sun, 6 Jan 2019, Nick Hudson wrote: noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point.  Fake up a hdr so the kernel image is loaded at the right address

[Qemu-devel] [PATCH v5] Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel.

2019-01-07 Thread Nick Hudson
of DRAM. This matches the recommendation in Documentation/arm/Booting. Clarify the load_uimage API to state the passing of a load address when an image doesn't specify one, or when loading a ramdisk is expected. Adjust callers of load_uimage, etc. Signed-off-by: Nick Hudson --- hw/arm/b

[PATCH 1/1] NetBSD/arm build fix

2020-05-12 Thread Nick Hudson
Fix building on NetBSD/arm by extracting the FSR value from the correct siginfo_t field. Signed-off-by: Nick Hudson --- accel/tcg/user-exec.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 52359949df..3637626456 100644 --- a

[PATCH v2] NetBSD/arm build fix

2020-05-16 Thread Nick Hudson
Fix building on NetBSD/arm by extracting the FSR value from the correct siginfo_t field. Signed-off-by: Nick Hudson --- accel/tcg/user-exec.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 52359949df

[PATCH] Provide a NetBSD specific aarch64 cpu_signal_handler

2020-05-17 Thread Nick Hudson
Fix qemu build on NetBSD/evbarm-aarch64 by providing a NetBSD specific cpu_signal_handler. Signed-off-by: Nick Hudson --- accel/tcg/user-exec.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 4be78eb9b3

[PATCH] Provide a NetBSD specific aarch64 cpu_signal_handler

2020-05-17 Thread Nick Hudson
Fix qemu build on NetBSD/evbarm-aarch64 by providing a NetBSD specific cpu_signal_handler. Signed-off-by: Nick Hudson --- accel/tcg/user-exec.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 4be78eb9b3

Re: [PATCH] target/arm: Correct the encoding of MDCCSR_EL0

2021-06-29 Thread Nick Hudson
> On 29 Jun 2021, at 10:49, Peter Maydell wrote: > > On Tue, 29 Jun 2021 at 09:27, wrote: >> >> Signed-off-by: Nick Hudson >> --- >> target/arm/helper.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/target/arm

[PATCH] target/arm: Correct the encoding of MDCCSR_EL0

2021-06-29 Thread Nick Hudson
Signed-off-by: Nick Hudson --- target/arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/helper.c b/target/arm/helper.c index a66c1f0b9e..7267af7924 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -6330,7 +6330,7 @@ static const ARMCPRegInfo

Re: [PATCH] target/arm: Correct the encoding of MDCCSR_EL0

2021-07-02 Thread Nick Hudson
> On 29 Jun 2021, at 12:50, Peter Maydell wrote: > > On Tue, 29 Jun 2021 at 11:41, Nick Hudson wrote: >> >> >> >>> On 29 Jun 2021, at 10:49, Peter Maydell wrote: >>> >>> On Tue, 29 Jun 2021 at 09:27, wrote: >>>> >

Re: [PATCH] target/arm: Correct the encoding of MDCCSR_EL0

2021-07-02 Thread Nick Hudson
> On 29 Jun 2021, at 12:50, Peter Maydell wrote: > > On Tue, 29 Jun 2021 at 11:41, Nick Hudson wrote: >> >> >> >>> On 29 Jun 2021, at 10:49, Peter Maydell wrote: >>> >>> On Tue, 29 Jun 2021 at 09:27, wrote: >>>> >

[Qemu-devel] [PATCH v1 0/2] HPPA fixes for NetBSD/hppa emulation

2019-04-19 Thread Nick Hudson
Hi, Here are the required changes to allow qemu to emulate NetBSD/hppa. Nick Hudson (2): Implement the pcxl and pcxl2 Fast TLB Insert instructions as used by NetBSD (and OpenBSD) Always return EXCP_DMAR for protection id trap as EXCP_DMP is considered legacy. target/hppa

[Qemu-devel] [PATCH v1 2/2] Always return EXCP_DMAR for protection id trap as, EXCP_DMP is considered legacy.

2019-04-19 Thread Nick Hudson
Always return EXCP_DMAR for protection id trap as EXCP_DMP is considered legacy. "In PA-RISC 1.1 (Second Edition) and later revisions, processors must use traps 26, 27,and 28 which provide equivalent functionality" Signed-off-by: Nick Hudson --- target/hppa/mem_helper.c | 3 +-- 1 fi

[Qemu-devel] [PATCH v1 1/2] Implement the pcxl and pcxl2 Fast TLB Insert, instructions as used by NetBSD (and OpenBSD)

2019-04-19 Thread Nick Hudson
Implement the pcxl and pcxl2 Fast TLB Insert instructions as used by NetBSD (and OpenBSD) See https://parisc.wiki.kernel.org/images-parisc/a/a9/Pcxl2_ers.pdf page 13-9 (195/206) Signed-off-by: Nick Hudson --- target/hppa/insns.decode | 3 +++ target/hppa/translate.c | 54

[Qemu-devel] [PATCH v2 1/2] Implement the pcxl and pcxl2 Fast TLB Insert instructions as used by NetBSD (and OpenBSD)

2019-04-22 Thread Nick Hudson
From: Nick Hudson See https://parisc.wiki.kernel.org/images-parisc/a/a9/Pcxl2_ers.pdf page 13-9 (195/206) Signed-off-by: Nick Hudson --- target/hppa/insns.decode | 3 +++ target/hppa/translate.c | 52 2 files changed, 55 insertions(+) diff

[Qemu-devel] [PATCH v2 0/2] HPPA fixes for NetBSD/hppa emulation

2019-04-22 Thread Nick Hudson
From: Nick Hudson Here are the required changes to allow qemu to emulate NetBSD/hppa. v2 changes: - remove old debug code Nick Hudson (2): Implement the pcxl and pcxl2 Fast TLB Insert instructions as used by NetBSD (and OpenBSD) Always return EXCP_DMAR for protection id trap as

[Qemu-devel] [PATCH v2 2/2] Always return EXCP_DMAR for protection id trap as EXCP_DMP is considered legacy.

2019-04-22 Thread Nick Hudson
From: Nick Hudson "In PA-RISC 1.1 (Second Edition) and later revisions, processors must use traps 26, 27,and 28 which provide equivalent functionality" Signed-off-by: Nick Hudson --- target/hppa/mem_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t

[Qemu-devel] [PATCH v3 0/2] HPPA fixes for NetBSD/hppa emulation

2019-04-22 Thread Nick Hudson
v3 changes: - Don't use C99 comments and fix a typo in the comment v2 changes: - remove old debug code *** BLURB HERE *** Nick Hudson (2): Implement the pcxl and pcxl2 Fast TLB Insert instructions as used by NetBSD (and OpenBSD) Always return EXCP_DMAR for protection id tr

[Qemu-devel] [PATCH v3 1/2] Implement the pcxl and pcxl2 Fast TLB Insert instructions as used by NetBSD (and OpenBSD)

2019-04-22 Thread Nick Hudson
From: Nick Hudson See https://parisc.wiki.kernel.org/images-parisc/a/a9/Pcxl2_ers.pdf page 13-9 (195/206) Signed-off-by: Nick Hudson --- target/hppa/insns.decode | 3 +++ target/hppa/translate.c | 52 2 files changed, 55 insertions(+) diff

[Qemu-devel] [PATCH v3 2/2] Always return EXCP_DMAR for protection id trap as EXCP_DMP is considered legacy.

2019-04-22 Thread Nick Hudson
From: Nick Hudson "In PA-RISC 1.1 (Second Edition) and later revisions, processors must use traps 26, 27,and 28 which provide equivalent functionality" Signed-off-by: Nick Hudson --- target/hppa/mem_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t