[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH gnumach 2/3] add tests for FLOAT/XFLOAT state
From: |
Samuel Thibault |
Subject: |
Re: [PATCH gnumach 2/3] add tests for FLOAT/XFLOAT state |
Date: |
Fri, 23 Aug 2024 11:56:23 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Sergey Bugaev, le ven. 23 août 2024 12:50:32 +0300, a ecrit:
> On Wed, Aug 21, 2024 at 7:37 PM Luca Dariz <luca@orpolo.org> wrote:
> > +#include <mach_i386.user.h>
> > +
> > +static void printx(struct i386_xfloat_state *state, int size)
> > +{
> > + printf("xfloat init %d fp %d exc %d\n",
> > + state->initialized, state->fpkind, state->exc_status);
> > + struct i386_xfp_save *xfp = (struct i386_xfp_save *) &state->hw_state[0];
> > + printf("xfp %d %d %d %d %d %d %d %d\n",
> > + xfp->fp_control, xfp->fp_status, xfp->fp_tag, xfp->fp_eip,
> > + xfp->fp_cs, xfp->fp_opcode, xfp->fp_dp, xfp->fp_ds);
>
> Please make sure to disable this on non-x86. You can disable the whole
> test, I guess, or -- would testing something like this also make sense
> on other architectures?
Something like this would make sense, but not this, registers will be
completely different in other archs.
Samuel
[PATCH v2 gnumach 1/3] add xfloat thread state interface, Luca Dariz, 2024/08/21
[PATCH gnumach 3/3] add rpc interrupted test, Luca Dariz, 2024/08/21
Re: [PATCH v2 gnumach 1/3] add xfloat thread state interface, Samuel Thibault, 2024/08/22
Re: [PATCH v2 gnumach 1/3] add xfloat thread state interface, Samuel Thibault, 2024/08/22
Re: [PATCH v2 gnumach 1/3] add xfloat thread state interface, Samuel Thibault, 2024/08/22