Philippe,
On 7/30/25 06:58, Cédric Le Goater wrote:
Hello !
Michael provided changes to fix the build of the vbootrom image of the
AST2700 SoC machine in [1]. However, a workaound in roms/Makefile was
still necessary to build ast27x0_bootrom.bin correctly. This was later
fixed in [2].
This ser
malloc() return value is used without a check.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
v2: Also replaced strdup() with g_strdup()
Signed-off-by: Dmitry Frolov
---
target/xtensa/translate.c | 11 +++
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a
On 7/29/25 17:10, Bibo Mao wrote:
With tlb_flush_range_by_mmuidx(), the virtual address is 64 bit.
However on LoongArch TLB emulation system, virtual address is
48 bit. It is necessary to signed-extend 48 bit address to 64 bit when
flush tlb, also fix address calculation issue with odd page.
Sig
On 7/29/25 17:08, Bibo Mao wrote:
With function get_physical_address(), parameter MMUContext is added
and remove parameter address, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h| 3 +--
target/loongarch/cpu_helper.c | 32 ---
On 7/29/25 17:01, Bibo Mao wrote:
With function loongarch_map_address(), parameter MMUContext is added
and remove parameter address, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu_helper.c | 32 ++--
1 file changed, 14 insertions(+), 18 deletion
On 7/29/25 17:01, Bibo Mao wrote:
With function loongarch_get_addr_from_tlb(), parameter MMUContext
is added and remove parameter physical, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu_helper.c| 7 +--
target/loongarch/tcg/tcg_loongarch.h | 4 ++--
target/
On 7/29/25 17:01, Bibo Mao wrote:
With function loongarch_map_tlb_entry(), parameter MMUConext is added
and remove parameter physical, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/tcg/tlb_helper.c | 33 +++
1 file changed, 16 insertions(+), 17 del
On 7/29/25 17:01, Bibo Mao wrote:
Common function loongarch_check_pte() is to check tlb entry, return
the physical address and access priviledge if found. Also it can be
used with page table entry, which is used in page table walker.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h
On 7/29/25 17:01, Bibo Mao wrote:
There is mixed usage between enum variable TLBRET_xxx and int type,
here add enum type TLBRet definition and replace int type variable
with enum type TLBRet in some functions.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h | 27 ++
On 7/29/25 17:01, Bibo Mao wrote:
Replace target_ulong type with vaddr in function get_physical_address()
and the same with its calling functions.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h| 2 +-
target/loongarch/cpu_helper.c | 9 -
target/loongarch/tcg/tlb
On 7/29/25 17:01, Bibo Mao wrote:
Enum type MMUAccessType is used in function loongarch_map_tlb_entry()
rather than int type, and keep consistent with its caller function.
Signed-off-by: Bibo Mao
---
target/loongarch/tcg/tlb_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Rev
> From: Cédric Le Goater
> Sent: Wednesday, July 30, 2025 12:58 PM
> To: qemu-devel@nongnu.org
> Cc: Philippe Mathieu-Daudé ; Michael Tokarev
> ; Peter Maydell ; Hao Wu
> ; Jamin Lin ; Cédric Le
> Goater
> Subject: [PATCH v3 3/3] pc-bios: Update vbootrom image to commit
> 183c9ff8056b
>
> Full c
> From: Cédric Le Goater
> Sent: Wednesday, July 30, 2025 12:58 PM
> To: qemu-devel@nongnu.org
> Cc: Philippe Mathieu-Daudé ; Michael Tokarev
> ; Peter Maydell ; Hao Wu
> ; Jamin Lin ; Cédric Le
> Goater
> Subject: [PATCH v3 2/3] roms/Makefile: build ast27x0_bootrom
>
> From: Michael Tokarev
>
> From: Cédric Le Goater
> Sent: Wednesday, July 30, 2025 12:58 PM
> To: qemu-devel@nongnu.org
> Cc: Philippe Mathieu-Daudé ; Michael Tokarev
> ; Peter Maydell ; Hao Wu
> ; Jamin Lin ; Cédric Le
> Goater
> Subject: [PATCH v3 1/3] roms/vbootrom: update to 7b1eb5f7fe6a
>
> From: Michael Tokarev
>
Jamin,
On 7/30/25 03:47, Jamin Lin wrote:
Hi Cédric, Michael
From: Cédric Le Goater
Sent: Tuesday, July 29, 2025 5:12 PM
To: Jamin Lin ; Michael Tokarev
; Peter Maydell ; Steven Lee
; Troy Lee ; Andrew
Jeffery ; Joel Stanley ; open
list:ASPEED BMCs ; open list:All patches CC here
Cc: Troy Le
Hello !
Michael provided changes to fix the build of the vbootrom image of the
AST2700 SoC machine in [1]. However, a workaound in roms/Makefile was
still necessary to build ast27x0_bootrom.bin correctly. This was later
fixed in [2].
This series is an update of [1] including a vbootrom image matc
Full changelog since last update (1287b6e42e83) :
Hao Wu (2):
Automatically search for UBOOT location for NPCM8xx images.
Dynamically detects NPCM8XX UBOOT destination and size.
Jamin Lin (5):
Add initial support for AST27x0
ast27x0: Show build date and git version
a
From: Michael Tokarev
Changes:
7b1eb5f ast27x0: Fix Makefile to unconditionally set CC to support correct
cross-compilation
601d410 ast27x0: Fix missing SCU module reset for SSP and TSP initialization
80768e4 ast27x0: Initialize and enable SSP/TSP using SCU with reserved-memory
from DTB
f8ab63
From: Michael Tokarev
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3052
Signed-off-by: Michael Tokarev
Reviewed-by: Philippe Mathieu-Daudé
Tested-by: Philippe Mathieu-Daudé
Link:
https://lore.kernel.org/qemu-devel/607a943a587248fbe0ff0897de80aee98a093caa.1753654515.git@tls.msk.
With function helper_tlbwr(), specified LoongArch TLB entry will be
updated. There are two PTE pages in one TLB entry, it is not
necessary to flush QEMU TLB when one PTE page keeps unchanged and
ther other PTE page is newly added.
Here check whether PTE page is the same or not, TLB flush can be
sk
With function helper_tlbfill(), since there is no suitable TLB entry,
new TLB will be added and invalidate one old TLB entry. The old TLB
entry index is selected randomly, instead it can be optimized as
following:
1. invalid TLB entry can be selected at first.
2. TLB entry with other ASID can b
With function fill_tlb_entry(), it will update LoongArch emulated
TLB information. Here parameter tlb pointer is added so that TLB
entry will be updated based on relative TLB CSR registers.
Signed-off-by: Bibo Mao
Reviewed-by: Richard Henderson
---
target/loongarch/tcg/tlb_helper.c | 7 +++
With API tlb_flush_range_by_mmuidx(), bitmap of mmu idx should be used
rather than itself. And mmu idx comes from page table entry information
rather current running mode.
Also field KM in TLB misc records bitmap mask of TLB entry which is
access in kernel mode. If set, MMU_KERNEL_IDX should be ad
With tlb_flush_range_by_mmuidx(), the virtual address is 64 bit.
However on LoongArch TLB emulation system, virtual address is
48 bit. It is necessary to signed-extend 48 bit address to 64 bit when
flush tlb, also fix address calculation issue with odd page.
Signed-off-by: Bibo Mao
---
target/lo
The concept of mmu idx between QEMU TLB and LoongArch TLB emulation
is different:
mmu idx in QEMU TLB comes from currently working mode of vCPU
mmu idx from LoongArch TLB is page priviledge level
With copy_from_user() executed in system, vCPU is in kernel mode
however PLV of PTE is user mode.
With function get_physical_address(), parameter MMUContext is added
and remove parameter address, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h| 3 +--
target/loongarch/cpu_helper.c | 32 ---
target/loongarch/tcg/tlb_helper.c |
Enum type MMUAccessType is used in function loongarch_map_tlb_entry()
rather than int type, and keep consistent with its caller function.
Signed-off-by: Bibo Mao
---
target/loongarch/tcg/tlb_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/loongarch/tcg/tlb_hel
With function loongarch_map_tlb_entry(), parameter MMUConext is added
and remove parameter physical, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/tcg/tlb_helper.c | 33 +++
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/target/loonga
Common function loongarch_check_pte() is to check tlb entry, return
the physical address and access priviledge if found. Also it can be
used with page table entry, which is used in page table walker.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h| 10 +
target/loongarch/cpu_h
With function loongarch_map_address(), parameter MMUContext is added
and remove parameter address, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu_helper.c | 32 ++--
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/target/loongarch/c
Function loongarch_cpu_post_init() is implemented and used in the
same file target/loongarch/cpu.c, it can be defined as static function.
This patch moves implementation about function loongarch_cpu_post_init()
before it is referenced. And it is only code movement, no function
change.
Signed-off-
New header file cpu-mmu.h is added and move mmu relative function
declaration to this file.
Signed-off-by: Bibo Mao
Reviewed-by: Richard Henderson
---
target/loongarch/cpu-mmu.h| 30 ++
target/loongarch/cpu.c| 1 +
target/loongarch/cpu_helper.c
There are some enhancement about LoongArch mmu tcg emulation, add new
header file cpu-mmu.h and function loongarch_check_pte(). Function
loongarch_check_pte() can work on both TLB entry and pte entry.
This patchset mainly is code cleanup and enhancement, its main
purpose is to work for hardware pa
Move function definition specified with kvm to the corresponding
directory. Also remove header file "cpu.h" including outside of
macro QEMU_KVM_LOONGARCH_H.
Signed-off-by: Bibo Mao
Reviewed-by: Richard Henderson
---
hw/loongarch/virt.c | 1 +
target/loongarch/cpu.h
There is mixed usage between enum variable TLBRET_xxx and int type,
here add enum type TLBRet definition and replace int type variable
with enum type TLBRet in some functions.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h | 27 ++-
target/loongarch/cpu_
With function loongarch_get_addr_from_tlb(), parameter MMUContext
is added and remove parameter physical, prot and address.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu_helper.c| 7 +--
target/loongarch/tcg/tcg_loongarch.h | 4 ++--
target/loongarch/tcg/tlb_helper.c| 18 +++
Function loongarch_check_pte() can get physical address and access
priviledge, it works on both TLB entry and pte entry. It can be used
in function loongarch_page_table_walker() also.
Signed-off-by: Bibo Mao
Reviewed-by: Richard Henderson
---
target/loongarch/cpu_helper.c | 42 +
Replace target_ulong type with vaddr in function get_physical_address()
and the same with its calling functions.
Signed-off-by: Bibo Mao
---
target/loongarch/cpu-mmu.h| 2 +-
target/loongarch/cpu_helper.c | 9 -
target/loongarch/tcg/tlb_helper.c | 11 ++-
3 files ch
With VTLB different TLB entry may have different page size, and
page size is set in PS field of TLB entry. However with STLB, all
the TLB entries have the same page size, page size comes from register
CSR_STLBPS, PS field of TLB entry is not used.
Here PS field of TLB entry is used with all TLB en
Hi Cédric, Michael
> From: Cédric Le Goater
> Sent: Tuesday, July 29, 2025 5:12 PM
> To: Jamin Lin ; Michael Tokarev
> ; Peter Maydell ; Steven Lee
> ; Troy Lee ; Andrew
> Jeffery ; Joel Stanley ; open
> list:ASPEED BMCs ; open list:All patches CC here
>
> Cc: Troy Lee ; Hao Wu ;
> Havard Skinne
Changes:
7b1eb5f ast27x0: Fix Makefile to unconditionally set CC to support correct
cross-compilation
601d410 ast27x0: Fix missing SCU module reset for SSP and TSP initialization
80768e4 ast27x0: Initialize and enable SSP/TSP using SCU with reserved-memory
from DTB
f8ab635 ast27x0: Show build dat
On Wed, Jul 30, 2025 at 11:01 AM wrote:
>
> From: Alistair Francis
>
> The following changes since commit 9b80226ece693197af8a981b424391b68b5bc38e:
>
> Update version for the v10.1.0-rc1 release (2025-07-29 13:00:41 -0400)
>
> are available in the Git repository at:
>
> https://github.com/ali
From: Sunil V L
RISC-V support is added only in ACPI 6.6. According to the ACPI 6.6
specification, the minor version of the Fixed ACPI Description Table
(FADT) should be 6, and the Multiple APIC Description Table (MADT)
should use revision 7. So, update the RISC-V FADT and MADT to reflect
correct
From: Vac Chen
pmp_is_in_range() prefers to match addresses within the interval
[start, end]. To archieve this, pmpaddrX is decremented during the end
address update.
In TOR mode, a rule is ignored if its start address is greater than or
equal to its end address.
However, if pmpaddrX is set to
From: Jay Chang
RISC-V Privileged Spec states:
"In harts with S-mode, the medeleg and mideleg registers must exist, and
setting a bit in medeleg or mideleg will delegate the corresponding trap
, when occurring in S-mode or U-mode, to the S-mode trap handler. In
harts without S-mode, the medeleg a
From: Jay Chang
RISC-V AIA Spec states:
"For a machine-level environment, extension Smaia encompasses all added
CSRs and all modifications to interrupt response behavior that the AIA
specifies for a hart, over all privilege levels. For a supervisor-level
environment, extension Ssaia is essentiall
From: Xu Lu
When supervisor CSRs are accessed from VU-mode, a virtual instruction
exception should be raised instead of an illegal instruction.
Fixes: c1fbcecb3a (target/riscv: Fix csr number based privilege checking)
Signed-off-by: Xu Lu
Reviewed-by: Anup Patel
Reviewed-by: Nutty Liu
Message
From: Daniel Henrique Barboza
GETPC() should always be called from the top level helper, e.g. the
first helper that is called by the translation code. We stopped doing
that in commit 3157a553ec, and then we introduced problems when
unwinding the exceptions being thrown by helper_mret(), as report
From: Yang Jialong
The RISC-V Advanced interrupt Architecture:
4.5.16. Interrupt targets:
If interrupt source i is inactive in this domain, register target[i] is
read-only zero.
Signed-off-by: Yang Jialong
Reviewed-by: Daniel Henrique Barboza
Message-ID: <20250728055114.252024-1-z_baj...@yeah.
On Tue, Jul 29, 2025 at 4:12 AM Dmitry Frolov wrote:
>
> malloc() return value is used without a check.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Dmitry Frolov
> ---
> target/xtensa/translate.c | 9 ++---
> 1 file changed, 2 insertions(+), 7 del
From: Sunil V L
Signed-off-by: Sunil V L
Acked-by: Michael S. Tsirkin
Reviewed-by: Daniel Henrique Barboza
Reviewed-by: Nutty Liu
Message-ID: <20250724110350.452828-2-suni...@ventanamicro.com>
Signed-off-by: Alistair Francis
---
tests/qtest/bios-tables-test-allowed-diff.h | 2 ++
1 file cha
From: Sunil V L
Update the expected tables for the version change.
/*
*
* ACPI Data Table [FACP]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue (in
hex)
*/
[000h 004h] Signature : "FACP"[Fixed ACPI
Description Table (FADT)]
[004
From: Daniel Henrique Barboza
We're missing a strace entry for riscv_hwprobe, and using -strace will
report it as "Unknown syscall 258".
After this patch we'll have:
$ ./build/qemu-riscv64 -strace test_mutex_riscv
110182 riscv_hwprobe(0x7f207efdc700,1,0,0,0,0) = 0
110182 brk(NULL) = 0x0
From: Daniel Henrique Barboza
This reverts commit 28c12c1f2f50d7f7f1ebfc587c4777ecd50aac5b.
As reported in [1] this commit is breaking Linux vector code, and
although a simpler reproducer was provided, the fix itself isn't trivial
due to the amount and the nature of the changes. And we really do
From: Alistair Francis
The following changes since commit 9b80226ece693197af8a981b424391b68b5bc38e:
Update version for the v10.1.0-rc1 release (2025-07-29 13:00:41 -0400)
are available in the Git repository at:
https://github.com/alistair23/qemu.git tags/pull-riscv-to-apply-20250730-2
for
Fabiano Rosas writes:
> Fabiano Rosas writes:
>
>> Peter Maydell writes:
>>
>>> On Wed, 23 Jul 2025 at 23:20, Fabiano Rosas wrote:
Peter Maydell writes:
> We don't implement the Debug Communications Channel (DCC), but
> we do attempt to provide dummy versions of its s
This structure is part of the sparc signal frame.
Signed-off-by: Richard Henderson
---
linux-user/sparc/target_syscall.h | 19 ---
linux-user/sparc/signal.c | 20
2 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/linux-user/sparc/target
Signed-off-by: Richard Henderson
---
linux-user/microblaze/target_elf.h | 5 +
linux-user/elfload.c | 10 --
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/linux-user/microblaze/target_elf.h
b/linux-user/microblaze/target_elf.h
index bfe2997fd2..738a10
Rename from cpu_get_model to emphasize that this is
an elf-specific function. Declare the function once
in loader.h.
This frees up target_elf.h for other uses.
Signed-off-by: Richard Henderson
---
linux-user/aarch64/target_elf.h | 5 +---
linux-user/alpha/target_elf.h | 5 +---
lin
Merge init_thread and target_cpu_copy_regs.
There's no point going through a target_pt_regs intermediate.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 18 +-
linux-user/xtensa/cpu_loop.c | 22 --
2 files changed, 17 insertions(+), 23 del
Now that all target_coredump.c.inc files have been created,
USE_ELF_CORE_DUMP signals that it is available.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 16 +---
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
i
For get_elf_hwcap and get_elf_hwcap2, change the return type to
abi_ulong, and pass in the cpu. We must do these targets at the
same time because of the ifdef dependency between TARGET_AARCH64
and TARGET_ARM.
Signed-off-by: Richard Henderson
---
linux-user/arm/target_proc.h | 4 +-
linux-user
Use TARGET_PAGE_SIZE instead. If the target page size may vary,
using a different fixed size is wrong.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 21 ++---
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
This structure is part of the microblaze signal frame.
Signed-off-by: Richard Henderson
---
linux-user/microblaze/target_syscall.h | 44 --
linux-user/microblaze/signal.c | 44 ++
2 files changed, 44 insertions(+), 44 deletions(-)
diff --g
Signed-off-by: Richard Henderson
---
linux-user/ppc/target_elf.h | 45 ++
linux-user/elfload.c| 55 -
2 files changed, 45 insertions(+), 55 deletions(-)
diff --git a/linux-user/ppc/target_elf.h b/linux-user/ppc/target_elf.h
All targets have been converted, so we can call init_main_thread
directly. Remove do_init_main_thread and HAVE_INIT_MAIN_THREAD.
Signed-off-by: Richard Henderson
---
linux-user/loader.h | 1 -
linux-user/qemu.h| 2 --
linux-user/elfload.c | 46
Move the workaround out of linux-user/elfload.c, so that
we don't have to replicate it in many places. Place it
immediately after the include of , which draws
in the relevant symbols.
Signed-off-by: Richard Henderson
---
include/qemu/osdep.h | 8
linux-user/elfload.c | 7 ---
2 fil
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 17 +
linux-user/openrisc/target_coredump.c.inc | 15 +++
2 files changed, 16 insertions(+), 16 deletions(-)
create mode 100644 linux-user/openrisc/target_coredump.c.inc
diff --git a/lin
Remove struct target_pt_regs as unused.
Move target_psw_t to signal.c, as it is used there.
Signed-off-by: Richard Henderson
---
linux-user/s390x/target_syscall.h | 22 --
linux-user/s390x/signal.c | 5 +
2 files changed, 5 insertions(+), 22 deletions(-)
diff --
This structure is part of the openrisc signal frame.
Signed-off-by: Richard Henderson
---
linux-user/openrisc/target_syscall.h | 11 ---
linux-user/openrisc/signal.c | 12
2 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/linux-user/openrisc/target_sys
The last use of this fallback was removed in bf858897b769.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 6eb4e31bdb..14d4502b3c 100644
--- a/linux-user/elfload.c
+++ b/linux-user
This structure is unused, and would only ever be used for the
ptrace syscall, which we will never implement for linux-user.
Signed-off-by: Richard Henderson
---
linux-user/aarch64/target_syscall.h | 7 -
linux-user/alpha/target_syscall.h | 40 -
linux-user/
Signed-off-by: Richard Henderson
---
linux-user/loongarch64/target_elf.h | 7 +++
linux-user/elfload.c| 14 --
2 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/linux-user/loongarch64/target_elf.h
b/linux-user/loongarch64/target_elf.h
index 39a08d35
The last use of this fallback was removed in 8e62a71738bc.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 5185c84e58..6eb4e31bdb 100644
--- a/linux-user/elfload.c
+++ b/linux-user
Rename to elf_check_machine to match ELF_MACHINE.
Remove the unnecessary definition for loongarch64.
Signed-off-by: Richard Henderson
---
linux-user/i386/target_elf.h| 2 +-
linux-user/loongarch64/target_elf.h | 1 -
linux-user/microblaze/target_elf.h | 2 +-
linux-user/sparc/target_elf
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 29 +-
linux-user/m68k/target_coredump.c.inc | 30 +++
2 files changed, 31 insertions(+), 28 deletions(-)
create mode 100644 linux-user/m68k/target_coredump.c.inc
diff --
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 34 +---
linux-user/sh4/target_coredump.c.inc | 32 ++
2 files changed, 33 insertions(+), 33 deletions(-)
create mode 100644 linux-user/sh4/target_coredump.c.inc
diff --gi
Signed-off-by: Richard Henderson
---
linux-user/s390x/target_elf.h | 6 ++
linux-user/elfload.c | 12
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/linux-user/s390x/target_elf.h b/linux-user/s390x/target_elf.h
index e51b053339..aa12ecf36b 100644
--- a/
Move the aarch32 get_elf_platform to arm/elfload.c; pass in CPUState.
Create a simple version in aarch64/elfload.c, which we must do at the
same time because of the ifdef dependency between TARGET_AARCH64
and TARGET_ARM.
Since all versions of get_elf_platform now have the same
signature, remove th
Pass in CPUState. Since this was the only instance of ELF_BASE_PLATFORM,
go ahead provide a weak fallback for all other targets.
Signed-off-by: Richard Henderson
---
linux-user/loader.h | 1 +
linux-user/elfload.c | 42 ++-
linux-user/mips/elfload
Signed-off-by: Richard Henderson
---
linux-user/openrisc/target_elf.h | 4
linux-user/elfload.c | 10 --
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/linux-user/openrisc/target_elf.h b/linux-user/openrisc/target_elf.h
index b34f2ff672..0a2b3ef762 10064
Signed-off-by: Richard Henderson
---
linux-user/hppa/target_elf.h | 4
linux-user/loader.h | 2 --
linux-user/elfload.c | 32
linux-user/hppa/elfload.c| 31 +++
4 files changed, 35 insertions(+), 34 deletions
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 19 ---
1 file changed, 19 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 54ea9221d9..e8d5b56cfb 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -196,25 +196,6 @@ bool arch_pa
Merge init_thread and target_cpu_copy_regs.
There's no point going through a target_pt_regs intermediate.
Note that init_thread had set crmd in target_pt_regs, but
target_cpu_copy_regs did not copy to env. This turns out to be
ok because loongarch_cpu_reset_hold initializes CRMD properly.
Signed
Provide a weak stub version of init_guest_commpage
instead of using the preprocessor.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 8ebde57fa5..01c39bf456
Merge init_thread and target_cpu_copy_regs.
There's no point going through a target_pt_regs intermediate.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 8 +--
linux-user/microblaze/cpu_loop.c | 39
2 files changed, 6 insertions(+),
Signed-off-by: Richard Henderson
---
linux-user/xtensa/target_elf.h | 4
linux-user/elfload.c | 9 -
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/linux-user/xtensa/target_elf.h b/linux-user/xtensa/target_elf.h
index 2c55c22e14..cacfb6e81a 100644
--- a/linu
Signed-off-by: Richard Henderson
---
linux-user/hexagon/target_elf.h | 3 +++
linux-user/elfload.c| 7 ---
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/linux-user/hexagon/target_elf.h b/linux-user/hexagon/target_elf.h
index eccf207f6b..a9f6d77fc6 100644
--- a/lin
Signed-off-by: Richard Henderson
---
linux-user/elfload.c| 41 +---
linux-user/x86_64/target_coredump.c.inc | 42 +
2 files changed, 43 insertions(+), 40 deletions(-)
create mode 100644 linux-user/x86_64/target_coredump.c.inc
diff
Signed-off-by: Richard Henderson
---
linux-user/elfload.c| 46 +
linux-user/mips/target_coredump.c.inc | 46 +
linux-user/mips64/target_coredump.c.inc | 1 +
3 files changed, 48 insertions(+), 45 deletions(-)
create mode 1006
Signed-off-by: Richard Henderson
---
linux-user/riscv/target_elf.h | 10 ++
linux-user/elfload.c | 14 --
2 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/linux-user/riscv/target_elf.h b/linux-user/riscv/target_elf.h
index bfe86105d0..61446dd945 100644
Signed-off-by: Richard Henderson
---
linux-user/sh4/target_elf.h | 4
linux-user/elfload.c| 9 -
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/linux-user/sh4/target_elf.h b/linux-user/sh4/target_elf.h
index d17011bd75..68b58beaa4 100644
--- a/linux-user/sh4/t
Signed-off-by: Richard Henderson
---
linux-user/loader.h | 3 +++
linux-user/elfload.c| 20
linux-user/x86_64/elfload.c | 20
3 files changed, 23 insertions(+), 20 deletions(-)
diff --git a/linux-user/loader.h b/linux-user/loader.h
index
Signed-off-by: Richard Henderson
---
linux-user/alpha/target_elf.h | 3 +++
linux-user/elfload.c | 7 ---
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/linux-user/alpha/target_elf.h b/linux-user/alpha/target_elf.h
index 52b68680ad..f9d6372c9f 100644
--- a/linux-user/
Change the return type to abi_ulong, and pass in the cpu.
Duplicate the one line function between i386 and x86_64,
as most other additions to elfload.c won't be common.
Signed-off-by: Richard Henderson
---
linux-user/loader.h | 3 +++
linux-user/elfload.c| 9 +
linux-us
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 31 +-
linux-user/i386/target_coredump.c.inc | 32 +++
2 files changed, 33 insertions(+), 30 deletions(-)
create mode 100644 linux-user/i386/target_coredump.c.inc
diff --
Merge init_thread and target_cpu_copy_regs.
There's no point going through a target_pt_regs intermediate.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 13 +
linux-user/hppa/cpu_loop.c | 18 +++---
2 files changed, 12 insertions(+), 19 deletions(-)
di
Rename from vdso_image_info to avoid a symbol clash.
Provide fallback versions for other targets.
Signed-off-by: Richard Henderson
---
linux-user/loader.h | 12
linux-user/arm/elfload.c | 20
linux-user/elfload.c | 41 ++-
All real definitions of ELF_PLATFORM are now identical, and the stub
definitions are NULL. Provide a weak stub as a fallback definition.
Signed-off-by: Richard Henderson
---
linux-user/elfload.c | 21 ++---
1 file changed, 6 insertions(+), 15 deletions(-)
diff --git a/linux-use
Signed-off-by: Richard Henderson
---
linux-user/aarch64/target_elf.h | 1 +
linux-user/loader.h | 5 +
linux-user/aarch64/elfload.c| 18 +
linux-user/elfload.c| 35 ++---
4 files changed, 30 insertions(+), 29 deletions(
1 - 100 of 270 matches
Mail list logo