Skip to content

Commit ccf6d52

Browse files
committed
qemu: Adding patch to fix qemu rx
This commit adding 2 patch to fix for qemu_rx - 1st patch is to fix for timer accurarcy issue - 2nd patch is to fix for flow of execute interrupt handling function for normal interrup and CPU exception - 3rd patch is to add Reset the CPU at qemu reset time so elf target can be execute when use device loader Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
1 parent 97e45bf commit ccf6d52

20 files changed

+333
-34
lines changed

meta-zephyr-sdk/recipes-devtools/qemu/files/0001-target-xtensa-add-translation-for-wsr.mpucfg.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 7524720962d103fbf7c324b43aa84f26b6cc8835 Mon Sep 17 00:00:00 2001
1+
From d015746c863284d68ae860409982cb7a320f6341 Mon Sep 17 00:00:00 2001
22
From: Max Filippov <jcmvbkbc@gmail.com>
33
Date: Thu, 14 Dec 2023 18:08:26 -0800
4-
Subject: [PATCH 01/16] target/xtensa: add translation for wsr.mpucfg
4+
Subject: [PATCH 01/19] target/xtensa: add translation for wsr.mpucfg
55

66
Although MPUCFG is not writable, the opcode wsr.mpucfg is defined and it
77
just does nothing. Define wsr.mpucfg as nop.

meta-zephyr-sdk/recipes-devtools/qemu/files/0002-target-xtensa-import-sample_controller32-core.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From a46011e8eadebc4d8021f6a8522fa0ed52e89428 Mon Sep 17 00:00:00 2001
1+
From c8529a4ff0d5a205003d84ed40e300173213973f Mon Sep 17 00:00:00 2001
22
From: Max Filippov <jcmvbkbc@gmail.com>
33
Date: Thu, 14 Dec 2023 16:47:09 -0800
4-
Subject: [PATCH 02/16] target/xtensa: import sample_controller32 core
4+
Subject: [PATCH 02/19] target/xtensa: import sample_controller32 core
55

66
This is an LX core with MPU and exclusive access options.
77

meta-zephyr-sdk/recipes-devtools/qemu/files/0003-tests-tcg-xtensa-tidy-test-linker-script.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From ad202784183a635c281749f67ed2411e879facb3 Mon Sep 17 00:00:00 2001
1+
From 939da062ee835cbdd52be49c687160565c3d0fd6 Mon Sep 17 00:00:00 2001
22
From: Max Filippov <jcmvbkbc@gmail.com>
33
Date: Thu, 14 Dec 2023 16:46:08 -0800
4-
Subject: [PATCH 03/16] tests/tcg/xtensa: tidy test linker script
4+
Subject: [PATCH 03/19] tests/tcg/xtensa: tidy test linker script
55

66
Drop MEMORY clause and related size definitions and output section
77
region specifications. Drop .rodata output section as the tests don't

meta-zephyr-sdk/recipes-devtools/qemu/files/0004-tests-tcg-xtensa-fix-SR-test-for-configs-with-MPU.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From dd5194b56b7a6ca2faedccfd96137c0304abe394 Mon Sep 17 00:00:00 2001
1+
From b26560c924c15d138ce6fa96f8271c2803b27ca6 Mon Sep 17 00:00:00 2001
22
From: Max Filippov <jcmvbkbc@gmail.com>
33
Date: Thu, 14 Dec 2023 18:14:00 -0800
4-
Subject: [PATCH 04/16] tests/tcg/xtensa: fix SR test for configs with MPU
4+
Subject: [PATCH 04/19] tests/tcg/xtensa: fix SR test for configs with MPU
55

66
- atomctl is available not only in the presence of s32c1i, but also with
77
the exclusive access option

meta-zephyr-sdk/recipes-devtools/qemu/files/0005-target-xtensa-fix-sample_controller32-build-for-QEMU.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From f427b780bb1241b675d7a710d224d233031b709d Mon Sep 17 00:00:00 2001
1+
From aa41c2f05735e5591a226925b66efa16788e84f8 Mon Sep 17 00:00:00 2001
22
From: Daniel Leung <daniel.leung@intel.com>
33
Date: Tue, 14 May 2024 09:52:26 -0700
4-
Subject: [PATCH 05/16] target/xtensa: fix sample_controller32 build for QEMU 7
4+
Subject: [PATCH 05/19] target/xtensa: fix sample_controller32 build for QEMU 7
55

66
The original patches for adding sample_controller32 are based on
77
QEMU 9. The GDB stub header file is not in the same place between

meta-zephyr-sdk/recipes-devtools/qemu/files/0006-Revert-target-xtensa-Make-use-of-segment-in-pptlb-he.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From ab661500c3afa2ba48d8635089bc9985a149b5a0 Mon Sep 17 00:00:00 2001
1+
From 63f8bfdd97e3b86d85eee10ee68902c84e1dfe8d Mon Sep 17 00:00:00 2001
22
From: Anas Nashif <anas.nashif@intel.com>
33
Date: Fri, 16 May 2025 17:58:04 -0400
4-
Subject: [PATCH 06/16] Revert "target/xtensa: Make use of 'segment' in pptlb
4+
Subject: [PATCH 06/19] Revert "target/xtensa: Make use of 'segment' in pptlb
55
helper less confusing"
66

77
This reverts commit b42ba4ea4322357fcbfcb0e6e613d79ede84de64.

meta-zephyr-sdk/recipes-devtools/qemu/files/0007-qemu-Add-addition-environment-space-to-boot-loader-q.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 42a7273b1d4fd681a432d40bc4092c3487b3a556 Mon Sep 17 00:00:00 2001
1+
From 5d6dccdcdb757eb7577b1f0ee0403c9307276f2d Mon Sep 17 00:00:00 2001
22
From: Jason Wessel <jason.wessel@windriver.com>
33
Date: Fri, 28 Mar 2014 17:42:43 +0800
4-
Subject: [PATCH 07/16] qemu: Add addition environment space to boot loader
4+
Subject: [PATCH 07/19] qemu: Add addition environment space to boot loader
55
qemu-system-mips
66

77
Upstream-Status: Inappropriate - OE uses deep paths

meta-zephyr-sdk/recipes-devtools/qemu/files/0008-apic-fixup-fallthrough-to-PIC.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From d98f52b978273b4ee394f7ee3c00fdf966a0c2ec Mon Sep 17 00:00:00 2001
1+
From 0a062a8df964073d0a5261dea7c62530fa3a89a8 Mon Sep 17 00:00:00 2001
22
From: Mark Asselstine <mark.asselstine@windriver.com>
33
Date: Tue, 26 Feb 2013 11:43:28 -0500
4-
Subject: [PATCH 08/16] apic: fixup fallthrough to PIC
4+
Subject: [PATCH 08/19] apic: fixup fallthrough to PIC
55

66
Commit 0e21e12bb311c4c1095d0269dc2ef81196ccb60a [Don't route PIC
77
interrupts through the local APIC if the local APIC config says so.]

meta-zephyr-sdk/recipes-devtools/qemu/files/0009-qemu-Do-not-include-file-if-not-exists.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 19b994a2d608eabfa52e8f327ae6dc0ea3653181 Mon Sep 17 00:00:00 2001
1+
From 82fcf7fca2378036c4638a213d905f34e8a783a4 Mon Sep 17 00:00:00 2001
22
From: Oleksiy Obitotskyy <oobitots@cisco.com>
33
Date: Wed, 25 Mar 2020 21:21:35 +0200
4-
Subject: [PATCH 09/16] qemu: Do not include file if not exists
4+
Subject: [PATCH 09/19] qemu: Do not include file if not exists
55

66
Script configure checks for if_alg.h and check failed but
77
if_alg.h still included.

meta-zephyr-sdk/recipes-devtools/qemu/files/0010-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 923be76163f1e7a178431ee65c4867cb8e1a2fef Mon Sep 17 00:00:00 2001
1+
From 31ca39ae7a780467eff7622f297b4a529944ee11 Mon Sep 17 00:00:00 2001
22
From: Richard Purdie <richard.purdie@linuxfoundation.org>
33
Date: Fri, 8 Jan 2021 17:27:06 +0000
4-
Subject: [PATCH 10/16] qemu: Add some user space mmap tweaks to address musl
4+
Subject: [PATCH 10/19] qemu: Add some user space mmap tweaks to address musl
55
32 bit
66

77
When using qemu-i386 to build qemux86 webkitgtk on musl, it sits in an

0 commit comments

Comments
 (0)