oot_freebsd14(self, cpu=None):
> fetch_firmware(self)
>
> - img_path = self.ASSET_FREEBSD_ISO.fetch()
> +img_path = self.uncompress(self.ASSET_FREEBSD_ISO)
>
> self.vm.set_console()
> self.vm.add_args(
Reviewed-by: Warner Losh
Though maybe updating to 14.3 would be better.
Warner
On Tue, Jun 24, 2025 at 3:25 PM Stefan Hajnoczi wrote:
>
> On Tue, Jun 24, 2025 at 1:41 PM Warner Losh wrote:
> >
> > On Tue, Jun 24, 2025 at 11:16 AM Stefan Hajnoczi wrote:
> > >
> > > On Tue, Jun 24, 2025 at 12:28 PM Warner Losh wrote:
> > > >
On Tue, Jun 24, 2025 at 11:16 AM Stefan Hajnoczi wrote:
>
> On Tue, Jun 24, 2025 at 12:28 PM Warner Losh wrote:
> >
> > On Tue, Jun 24, 2025 at 10:02 AM Thomas Huth wrote:
> > >
> > > On 22/06/2025 03.46, Warner Losh wrote:
> > > >
> > >
On Tue, Jun 24, 2025 at 10:02 AM Thomas Huth wrote:
>
> On 22/06/2025 03.46, Warner Losh wrote:
> >
> >
> > On Sat, Jun 21, 2025, 6:01 PM Stefan Hajnoczi > <mailto:stefa...@gmail.com>> wrote:
> >
> > On Sat, Jun 21, 2025 at 7:59 PM Stefan Ha
On Sat, Jun 21, 2025, 6:01 PM Stefan Hajnoczi wrote:
> On Sat, Jun 21, 2025 at 7:59 PM Stefan Hajnoczi
> wrote:
>
> (I forgot to CC qemu-devel)
>
> >
> > Hi,
> > This might only be temporary, but the CI is getting HTTP 404 Not Found
> > for the following URL:
> >
> https://download.freebsd.org/r
On Fri, May 30, 2025 at 8:24 AM Thomas Huth wrote:
> I was trying to create a functional test for the "highbank" and "midway" arm
> machines of QEMU, and only succeeded after lots of trial and error to boot
> something on the "highbank" machine. Peter mentioned on IRC that he also
> does not test
I'm also ignorant of plugins, but (a) if not enabling plugins is a nop
and (b) plugins either work or fail completely, then I think we can
enable them. If they cause problems when not enabled by the user,
though, we'll likely have to revert.
I don't know enough about them, though, to review.
Warn
-by: Philippe Mathieu-Daudé
> ---
> bsd-user/bsd-mem.h | 2 +-
> bsd-user/qemu.h| 2 +-
> bsd-user/mmap.c| 10 ++
> 3 files changed, 4 insertions(+), 10 deletions(-)
>
Reviewed-by: Warner Losh
d, 6 insertions(+), 5 deletions(-)
>
Reviewed-by: Warner Losh
9 -
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
Reviewed-by: Warner Losh
Here I get why you have a new variable since it's a little easier to read.
Warner
> diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c
> index 346f2cefd32..dfa6e728ab5 100644
> ---
t;
> Signed-off-by: Philippe Mathieu-Daudé
> ---
> bsd-user/bsd-mem.h | 4 +++-
> bsd-user/qemu.h| 2 +-
> bsd-user/mmap.c| 10 ++
> 3 files changed, 6 insertions(+), 10 deletions(-)
>
Reviewed-by: Warner Losh
> diff --git a/bsd-user/bsd-mem.h b/bsd-user/
On Fri, Feb 7, 2025 at 9:21 AM Igor Mammedov wrote:
> target_reset_cpu() static inlines have no user,
> remove them.
>
> Signed-off-by: Igor Mammedov
> ---
> CC: Warner Losh
> CC: Kyle Evans
> ---
> bsd-user/aarch64/target_arch_cpu.h | 5 -
> bsd-user
g
> tests working for the BSDs.
>
> Signed-off-by: Alex Bennée
> Message-Id: <20250225110844.3296991-8-alex.ben...@linaro.org>
>
Reviewed-by: Warner Losh
I'd love to see the check-tcg working well for bsd, but I'm swamped with
other commitments.
Warner
> ---
> v2
; ---
> bsd-user/qemu.h| 12 +---
> include/user/mmap.h| 33 +
> linux-user/user-mmap.h | 19 ++-
> 3 files changed, 36 insertions(+), 28 deletions(-)
> create mode 100644 include/user/mmap.h
>
Reviewed-by: Warn
On Wed, Dec 18, 2024 at 6:36 PM Davidson Francis
wrote:
> Hi,
> Some time ago, I wrote a Gist [1] outlining what I believe to be the
> ideal environment for debugging 16-bit code in real mode on Qemu. Based
> on the feedback I've received, I decided to share it here to gather more
> opinions.
>
>
On Tue, Nov 5, 2024 at 3:49 PM Ilya Leoshkevich wrote:
> On Tue, 2024-11-05 at 22:30 +, Richard Henderson wrote:
> > On 11/5/24 15:50, Ilya Leoshkevich wrote:
> > > On Tue, 2024-11-05 at 08:39 -0700, Warner Losh wrote:
> > > > On Thu, Oct 24, 20
> >
> > +pid_placeholder = strstr(path, "%d");
> > +if (pid_placeholder != NULL) {
> > +g_string_append_len(buf, path, pid_placeholder - path);
> > +g_string_append_printf(buf, "%d", getpid());
>
> qemu_get_thread_id().
>
> Otherwise,
> Reviewed-by: Richard Henderson
>
Same.
Reviewed-by: Warner Losh
ed-off-by: Ilya Leoshkevich
> ---
> include/qemu/osdep.h | 9 +
> util/oslib-posix.c | 15 +++
> 2 files changed, 24 insertions(+)
>
Reviewed-by: Warner Losh
> diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
> index fe7c3c5f673..2350477787a 100644
nds tests) I'd likely use
SIGRTMAX + 1,
though, since it avoids any edge-cases from sig == NSIG that might be in
the code
unnoticed.
Now, having said that, I don't think that there's too many (any?) programs
we need
to run as bsd-user that have real-time signals, much less o
/user/signal.h | 23 +++
> linux-user/signal-common.h | 1 -
> linux-user/signal.c| 1 +
> linux-user/syscall.c | 1 +
> 6 files changed, 26 insertions(+), 2 deletions(-)
> create mode 100644 include/user/signal.h
>
Reviewed-by: War
ggestion ]]
Signed-off-by: Ilya Leoshkevich
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
---
bsd-user/x86_64/target_arch_thread.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bsd-user/x86_64/target_arch_thread.h
b/bsd-user/x86_64/target_arch_
From: Jessica Clarke
Currently we only set it on fork.
Note: Upstream (blitz) commit also did new threads, but that code isn't
in qemu project repo yet.
Signed-off-by: Jessica Clarke
Pull-Request: https://github.com/qemu-bsd-user/qemu-bsd-user/pull/52
Reviewed-by: Warner Losh
Signed-o
The following changes since commit daaf51001a13da007d7dde72e1ed3b06bc490791:
Merge tag 'seabios-hppa-v17-pull-request' of
https://github.com/hdeller/qemu-hppa into staging (2024-11-04 16:01:23 +)
are available in the Git repository at:
g...@gitlab.com:bsdimp/qemu.git tags/bsd-user-2024q
Mathieu-Daudé
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
---
bsd-user/main.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index cc980e6f401..7c230b0c7a5 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -60,6 +60,7 @@ uintptr_t
[[ sorry for the lag $LIFE has been over-full lately ]]
On Thu, Oct 3, 2024 at 3:56 AM Alex Bennée wrote:
> Warner Losh writes:
>
> > On Thu, Oct 3, 2024 at 2:53 AM Warner Losh wrote:
> >
> > On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée
> wrote:
> >
>
On Thu, Oct 3, 2024 at 2:53 AM Warner Losh wrote:
>
>
> On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée
> wrote:
>
>> One output from this discussion should be a clear statement that we are
>> going forward with this work and the road map. A rough roadmap might
On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée wrote:
> One output from this discussion should be a clear statement that we are
> going forward with this work and the road map. A rough roadmap might
> look like:
>
> - 9.2 --enable-rust is available and developers can build with it.
> r
On Thu, Oct 3, 2024, 3:53 AM Daniel P. Berrangé wrote:
> On Thu, Oct 03, 2024 at 02:53:08AM -0600, Warner Losh wrote:
> > On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée
> wrote:
> >
> > > One output from this discussion should be a clear statement that we are
> > &
viewed-by: Philippe Mathieu-Daudé
>
Series:
Reviewed-by: Warner Losh
On Fri, Aug 2, 2024 at 7:30 AM Richard Henderson <
richard.hender...@linaro.org> wrote:
> On 8/2/24 18:34, Ajeet Singh wrote:
> > From: Mark Corbin
> >
> > Implemented functions for setting up and initializing threads in the
> > RISC-V architecture.
> > The 'target_thread_set_upcall' function set
t; 'setup_sigframe_arch()': Initializes the signal frame with the current
> > machine context.This function copies the context from the CPU state to
> > the signal frame, preparing it for the signal handler.
> >
> > Signed-off-by: Mark Corbin
> > Signed-off
nux-user's.
Signed-off-by: Warner Losh
---
bsd-user/mmap.c | 28 +++-
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c
index ffecf52a72a..3c48a188e88 100644
--- a/bsd-user/mmap.c
+++ b/bsd-user/mmap.c
@@ -60,12 +60,26 @@ voi
Adopt the linux-user convention of using target_prot for passed in
protections. no functional change.
Signed-off-by: Warner Losh
---
bsd-user/mmap.c | 47 ---
1 file changed, 24 insertions(+), 23 deletions(-)
diff --git a/bsd-user/mmap.c b/bsd-user
Use helper variable for host_page_size. Linux-user uses a similar helper
to make the code smaller after the multi-page-size migration.
Signed-off-by: Warner Losh
---
bsd-user/mmap.c | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/bsd-user/mmap.c b/bsd-user
Pass the image name down the stack so that we can give better error
messages. Inspired by similar work in linux-user, and more likely to
come.
Signed-off-by: Warner Losh
---
bsd-user/elfload.c | 19 +++
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/bsd-user
dynamically allocate arrays rather than have them be hard-coded in a
Stacey Son (1):
bsd-user: Implement cpu_copy()
Warner Losh (16):
bsd-user: Delete TaskState next member
bsd-user: Make init_task_state global
bsd-user: Make cpu_model and cpu_type file scope
bsd-user: Eliminate unused regs arg
Nothing calls target_msync in the upstream or blitz fork, so remove it.
It will save us having to modernize it.
Signed-off-by: Warner Losh
---
bsd-user/mmap.c | 17 -
bsd-user/qemu.h | 1 -
2 files changed, 18 deletions(-)
diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c
index
rting code that linux-user uses to give better error messages on
failure.
Signed-off-by: Warner Losh
---
bsd-user/elfload.c | 110 +++--
1 file changed, 57 insertions(+), 53 deletions(-)
diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index dba03f
FreeBSD never really used the -p argument, so it's safe to remove
entirely.
Signed-off-by: Warner Losh
---
bsd-user/main.c | 8
1 file changed, 8 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 9ad31bd1efe..709ab10ddc1 100644
--- a/bsd-user/main.c
+++ b/bsd
#x27;t so large, and doing it incrementally further has become too
much work for too little gain.
Signed-off-by: Warner Losh
---
bsd-user/mmap.c | 138 +++-
1 file changed, 90 insertions(+), 48 deletions(-)
diff --git a/bsd-user/mmap.c b/bsd-us
bsd-user doesn't have support for loading FLT binaries.
Signed-off-by: Warner Losh
---
bsd-user/qemu.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index f18a54cc933..b97a902a4c2 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -164,8 +164,6 @
This is the generic validation function, so remove some hand-rolled
ones.
Signed-off-by: Warner Losh
---
bsd-user/mmap.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c
index fc69cb43ebd..ed8d31a9048 100644
--- a/bsd-user/mmap.c
variable.
Signed-off-by: Warner Losh
---
bsd-user/main.c | 3 ---
bsd-user/qemu.h | 1 -
2 files changed, 4 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 709ab10ddc1..8c52fb43ff1 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -92,7 +92,6 @@ static const char *cpu_type
From: Stacey Son
Catch up with 30ba0ee52d15 and implement cpu_copy(). It's needed for
threading. Stacey's original code, with bug fixes from Jessica, Justin
and myself.
Signed-off-by: Stacey Son
Signed-off-by: Jessica Clarke
Signed-off-by: Justin Hibbits
Signed-off-by: Warner Losh
Signed-off-by: Warner Losh
---
bsd-user/bsdload.c | 2 +-
bsd-user/elfload.c | 3 +--
bsd-user/qemu.h| 3 +--
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c
index 5b3c061a452..dcf3ca14fcc 100644
--- a/bsd-user/bsdload.c
+++ b/bsd-user
linux-user already does this since 2278b93941d4. That same commit just
added them with main() scope to bsd-user. We need the cpu_type, like
linux-user does, to create new CPUs outside of main to support
threading. Move both cpu_model and cpu_type to mirror linux-user/main.c.
Signed-off-by: Warner
Linux-user's target_mprotect uses this convention, so move to it.
Signed-off-by: Warner Losh
---
bsd-user/mmap.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c
index ed8d31a9048..d34075c5c64 100644
--- a/bsd-user/m
The next struct member of TaskState is unused. Remove it.
Signed-off-by: Warner Losh
---
bsd-user/qemu.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 3736c417860..4ccbee265a1 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -83,7 +83,6
Restore init_task_state to its global status. It's needed for threading
support outside of main.
Signed-off-by: Warner Losh
---
bsd-user/main.c | 2 +-
bsd-user/qemu.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index cc980e
On Thu, Aug 1, 2024 at 2:25 AM Ilya Leoshkevich wrote:
> On Wed, 2024-07-31 at 15:21 -0600, Warner Losh wrote:
>
> On Wed, Jul 31, 2024 at 8: 45 AM Ilya Leoshkevich
> wrote: While qemu-system can set tb-size using -accel tcg,tb-size=n, there
> is no similar knob for qemu-bsd-use
On Wed, Jul 31, 2024 at 5:03 PM Warner Losh wrote:
> Hmmm... All platforms likely need this
> Oh, they all have it except x86, both 32 and 64-bit but i386 is
> already properly aligned (at least in the
> FreeBSD kernel), so maybe that's not needed.
>
>
> On We
On Wed, Jul 31, 2024 at 3:42 PM Philippe Mathieu-Daudé
wrote:
> On 31/7/24 23:21, Warner Losh wrote:
> > On Wed, Jul 31, 2024 at 8:45 AM Ilya Leoshkevich > <mailto:i...@linux.ibm.com>> wrote:
> >
> > While qemu-system can set tb-size using -accel tcg,tb-si
h_thread.h
> > +++ b/bsd-user/x86_64/target_arch_thread.h
> > @@ -31,7 +31,7 @@ static inline void target_thread_init(struct
> target_pt_regs *regs,
> > struct image_info *infop)
> > {
> > regs->rax = 0;
> > -regs->rsp = infop->start_s
2,6 +459,8 @@ int main(int argc, char **argv)
> accel_init_interfaces(ac);
> object_property_set_bool(OBJECT(accel), "one-insn-per-tb",
> opt_one_insn_per_tb, &error_abort);
> +object_property_set_int(OBJECT(accel), "tb-size",
> +opt_tb_size, &error_abort);
> ac->init_machine(NULL);
> }
>
Reviewed-by: Warner Losh
I'll queue this to my bsd-user-2024-q3-2 branch. I hope to land it, just
after 9.1.0 release.
Warner
For aarch64, it's a 64-bit API, so there's no pairing of registers for
64-bit values.
Signed-off-by: Warner Losh
---
bsd-user/aarch64/target.h | 20
1 file changed, 20 insertions(+)
create mode 100644 bsd-user/aarch64/target.h
diff --git a/bsd-user/aarch64/targ
Signed-off-by: Ajeet Singh
Signed-off-by: Warner Losh
Co-authored-by: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-5-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/signal.c | 53
bsd-user/a
igned-off-by: Ajeet Singh
Co-authored-by: Jessica Clarke
Co-authored-by: Sean Bruno
Co-authored-by: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-3-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/target_arch.h | 28 ++
hardware capabilities using the
`GET_FEATURE_ID` macro.
Added function to retrieve extended ARM AArch64 hardware capability flags.
Signed-off-by: Stacey Son
Signed-off-by: Ajeet Singh
Signed-off-by: Warner Losh
Co-authored-by: Kyle Evans
Reviewed-by: Richard Henderson
Message-Id
We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use
them unconditionally. Restrict its use to Linux-only.
"It's ugly, but it's not actually wrong."
Signed-off-by: Warner Losh
Reviewed-by: Philippe Mathieu-Daudé
Reviewed-by: Richard Henderson
---
ta
h64
bsd-user:Add AArch64 improvements and signal handling functions
Warner Losh (7):
bsd-user:Add ARM AArch64 support and capabilities
bsd-user:Add setup_sigframe_arch function for ARM AArch64
bsd-user: Hard wire aarch64 to be 4k pages only
bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to
Most (all?) targets require stacks to be properly aligned. Rather than a
series of ifdefs in bsd-user/signal.h, instead use a manditory #define
for all architectures.
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
bsd-user/aarch64/target_arch_signal.h | 2 ++
bsd-user/arm
Only support 4k pages for aarch64 binaries. The variable page size stuff
isn't working just yet, so put in this lessor-of-evils kludge until that
is complete.
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
target/arm/cpu-param.h | 4
1 file changed, 4 insertions(+)
.
Changed FP data structures to use Int128 instead of __uint128_t, leveraging
QEMU's generic mechanism for referencing this type.
Signed-off-by: Stacey Son
Signed-off-by: Ajeet Singh
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-9-itac...@fre
: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-2-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/target_arch_cpu.c | 31 +
bsd-user/aarch64/target_arch_cpu.h | 192 +
bsd-user/aarch64/target_syscall.h
: <20240707191128.10509-6-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/signal.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c
index 98861f9ab3b..ab3bf8558ab 100644
--- a/bsd-user/aarch64/si
Message-Id: <20240707191128.10509-8-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/signal.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c
index 43c886e6036..13faac8ce60 100644
--- a/bs
The function utilizes the `get_mcontext` function to retrieve the machine
context for the current CPUARMState
Signed-off-by: Warner Losh
Signed-off-by: Ajeet Singh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-7-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bs
Add the aarch64 bsd-user fragments needed to build the new aarch64 code.
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
configs/targets/aarch64-bsd-user.mak | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 configs/targets/aarch64-bsd-user.mak
diff --git a/configs
/qemu-bsd-user/pull/52
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
bsd-user/main.c | 26 ++
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 82e94a03160..cc980e6f401 100644
ned-off-by: Doug Rabson
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
Acked-by: Richard Henderson
---
bsd-user/freebsd/os-proc.c | 118 +
bsd-user/main.c| 18 --
2 files changed, 3 insertions(+), 133 deletions(-)
diff --git a/bsd-user/
On Wed, Jul 24, 2024 at 2:55 AM Richard Henderson <
richard.hender...@linaro.org> wrote:
> On 7/24/24 04:07, Warner Losh wrote:
> > The following changes since commit
> 3cce8bd4d737f2ca688bbdcb92cd5cc683245bbd:
> >
> >Merge tag 'ui-pull-request' ofhtt
ned-off-by: Doug Rabson
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
Acked-by: Richard Henderson
---
bsd-user/freebsd/os-proc.c | 118 +
bsd-user/main.c| 18 --
2 files changed, 3 insertions(+), 133 deletions(-)
diff --git a/bsd-user/
: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-2-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/target_arch_cpu.c | 31 +
bsd-user/aarch64/target_arch_cpu.h | 192 +
bsd-user/aarch64/target_syscall.h
/qemu-bsd-user/pull/52
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
bsd-user/main.c | 26 ++
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 82e94a03160..cc980e6f401 100644
Most (all?) targets require stacks to be properly aligned. Rather than a
series of ifdefs in bsd-user/signal.h, instead use a manditory #define
for all architectures.
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
bsd-user/aarch64/target_arch_signal.h | 2 ++
bsd-user/arm
Message-Id: <20240707191128.10509-8-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/signal.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c
index 43c886e6036..13faac8ce60 100644
--- a/bs
igned-off-by: Ajeet Singh
Co-authored-by: Jessica Clarke
Co-authored-by: Sean Bruno
Co-authored-by: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-3-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/target_arch.h | 28 ++
Only support 4k pages for aarch64 binaries. The variable page size stuff
isn't working just yet, so put in this lessor-of-evils kludge until that
is complete.
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
target/arm/cpu-param.h | 4
1 file changed, 4 insertions(+)
hardware capabilities using the
`GET_FEATURE_ID` macro.
Added function to retrieve extended ARM AArch64 hardware capability flags.
Signed-off-by: Stacey Son
Signed-off-by: Ajeet Singh
Signed-off-by: Warner Losh
Co-authored-by: Kyle Evans
Reviewed-by: Richard Henderson
Message-Id
: <20240707191128.10509-6-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/signal.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c
index 98861f9ab3b..ab3bf8558ab 100644
--- a/bsd-user/aarch64/si
.
Changed FP data structures to use Int128 instead of __uint128_t, leveraging
QEMU's generic mechanism for referencing this type.
Signed-off-by: Stacey Son
Signed-off-by: Ajeet Singh
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-9-itac...@fre
Add the aarch64 bsd-user fragments needed to build the new aarch64 code.
Signed-off-by: Warner Losh
Reviewed-by: Richard Henderson
---
configs/targets/aarch64-bsd-user.mak | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 configs/targets/aarch64-bsd-user.mak
diff --git a/configs
Signed-off-by: Ajeet Singh
Signed-off-by: Warner Losh
Co-authored-by: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-5-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/signal.c | 53
bsd-user/a
We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use
them unconditionally. Restrict its use to Linux-only.
"It's ugly, but it's not actually wrong."
Signed-off-by: Warner Losh
Reviewed-by: Philippe Mathieu-Daudé
Reviewed-by: Richard Henderson
---
ta
The function utilizes the `get_mcontext` function to retrieve the machine
context for the current CPUARMState
Signed-off-by: Warner Losh
Signed-off-by: Ajeet Singh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-7-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bs
ialization and management functions
bsd-user:Add AArch64 register handling and related functions
bsd-user:Add ARM AArch64 signal handling support
bsd-user:Add get_mcontext function for ARM AArch64
bsd-user:Add set_mcontext function for ARM AArch64
bsd-user:Add AArch64 improvements and
On Tue, Jul 23, 2024 at 12:38 AM Philippe Mathieu-Daudé
wrote:
> On 23/7/24 03:17, Richard Henderson wrote:
> > On 7/23/24 08:11, Philippe Mathieu-Daudé wrote:
> >> On 23/7/24 00:06, Warner Losh wrote:
> >>>
> >>>
> >>> On Mon, Jul 22, 2
On Mon, Jul 22, 2024 at 4:01 PM Philippe Mathieu-Daudé
wrote:
> Hi Warner,
>
> On 22/7/24 23:43, Warner Losh wrote:
> > We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use
> > them unconditionally. Restrict its use to Linux-only.
>
> We shou
Oh, also, can I get a reviewed-by?
Warner
On Mon, Jul 22, 2024 at 11:08 PM Warner Losh wrote:
>
>
> On Mon, Jul 22, 2024 at 7:17 PM Richard Henderson <
> richard.hender...@linaro.org> wrote:
>
>> On 7/23/24 08:11, Philippe Mathieu-Daudé wrote:
>> >
On Mon, Jul 22, 2024 at 7:17 PM Richard Henderson <
richard.hender...@linaro.org> wrote:
> On 7/23/24 08:11, Philippe Mathieu-Daudé wrote:
> > On 23/7/24 00:06, Warner Losh wrote:
> >>
> >>
> >> On Mon, Jul 22, 2024 at 3:54 PM Philippe Mathieu-Da
On Mon, Jul 22, 2024 at 7:10 PM Richard Henderson <
richard.hender...@linaro.org> wrote:
> On 7/23/24 07:43, Warner Losh wrote:
> > Only support 4k pages for aarch64 binaries. The variable page size stuff
> > isn't working just yet, so put in this lessor-of-evils kludge
On Mon, Jul 22, 2024 at 3:54 PM Philippe Mathieu-Daudé
wrote:
> Hi Warner,
>
> On 22/7/24 23:43, Warner Losh wrote:
> > Add the aarch64 bsd-user fragments needed to build the new aarch64 code.
> >
> > Signed-off-by: Warner Losh
> > ---
> > configs/targe
We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use
them unconditionally. Restrict its use to Linux-only.
Signed-off-by: Warner Losh
---
target/arm/gdbstub64.c | 4
1 file changed, 4 insertions(+)
diff --git a/target/arm/gdbstub64.c b/target/arm/gdbstub64.c
index
/qemu-bsd-user/pull/52
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
---
bsd-user/main.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 82e94a03160..6d81452e51a 100644
--- a/bsd-user/main.c
+++ b/bsd
ned-off-by: Doug Rabson
Reviewed-by: Warner Losh
Signed-off-by: Warner Losh
---
bsd-user/freebsd/os-proc.c | 118 +
bsd-user/main.c| 18 --
2 files changed, 3 insertions(+), 133 deletions(-)
diff --git a/bsd-user/freebsd/os-proc.c b/bsd-user/
: <20240707191128.10509-6-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/signal.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c
index 98861f9ab3b..ab3bf8558ab 100644
--- a/bsd-user/aarch64/si
Add the aarch64 bsd-user fragments needed to build the new aarch64 code.
Signed-off-by: Warner Losh
---
configs/targets/aarch64-bsd-user.mak | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 configs/targets/aarch64-bsd-user.mak
diff --git a/configs/targets/aarch64-bsd-user.mak
b
Only support 4k pages for aarch64 binaries. The variable page size stuff
isn't working just yet, so put in this lessor-of-evils kludge until that
is complete.
Signed-off-by: Warner Losh
---
target/arm/cpu-param.h | 4
1 file changed, 4 insertions(+)
diff --git a/target/arm/cpu-para
igned-off-by: Ajeet Singh
Co-authored-by: Jessica Clarke
Co-authored-by: Sean Bruno
Co-authored-by: Warner Losh
Reviewed-by: Richard Henderson
Message-Id: <20240707191128.10509-3-itac...@freebsd.org>
Signed-off-by: Warner Losh
---
bsd-user/aarch64/target_arch.h | 28 ++
Most (all?) targets require stacks to be properly aligned. Rather than a
series of ifdefs in bsd-user/signal.h, instead use a manditory #define
for all architectures.
Signed-off-by: Warner Losh
---
bsd-user/aarch64/target_arch_signal.h | 2 ++
bsd-user/arm/target_arch_signal.h | 2 ++
bsd
1 - 100 of 1226 matches
Mail list logo