Re: [PATCH 02/23] Added CPU loop function

2024-06-23 Thread Richard Henderson
On 6/22/24 11:49, Warner Losh wrote: On Mon, Jun 17, 2024 at 10:24 PM Richard Henderson > wrote: On 6/17/24 11:57, Ajeet Singh wrote: > +            /* > +             * The carry bit is cleared for no error; set for error. > +         

Re: [PATCH 02/23] Added CPU loop function

2024-06-22 Thread Warner Losh
On Mon, Jun 17, 2024 at 10:24 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 6/17/24 11:57, Ajeet Singh wrote: > > +/* > > + * The carry bit is cleared for no error; set for error. > > + * See arm64/arm64/vm_machdep.c cpu_set_syscall_retval() >

Re: [PATCH 02/23] Added CPU loop function

2024-06-17 Thread Richard Henderson
On 6/17/24 11:57, Ajeet Singh wrote: +/* + * The carry bit is cleared for no error; set for error. + * See arm64/arm64/vm_machdep.c cpu_set_syscall_retval() + */ +pstate = pstate_read(env); +if (ret >= 0) { +p

[PATCH 02/23] Added CPU loop function

2024-06-17 Thread Ajeet Singh
From: Stacey Son CPU loop function to handle exceptions and emulate execution of instructions Signed-off-by: Stacey Son Signed-off-by: Ajeet Singh Co-authored-by: Kyle Evans Co-authored-by: Sean Bruno Co-authored-by: Jessica Clarke --- bsd-user/aarch64/target_arch_cpu.h | 132 +