forked from Imagelibrary/binutils-gdb
2002-11-06 Andrew Cagney <cagney@redhat.com>
* i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update all callers. (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P. (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P. (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P. (i386_mxcsr_regnum_p): new function. Use instead of MXCSR_REGNUM_P. * i386-tdep.h (SSE_REGNUM_P): Delete macro. (i386_sse_regnum_p): Declare. (i386_mxcsr_regnum_p): Declare. (FP_REGNUM_P, FPC_REGNUM_P): Delete macros. (i386_fp_regnum_p, i386_fpc_regnum_p): Declare. (IS_FP_REGNUM): Update definition. (IS_FPU_CTRL_REGNUM): Update definition.. (IS_SSE_REGNUM): Update definition.. * i386v-nat.c (register_u_addr): Update. * go32-nat.c (fetch_register): Update. (store_register): Update.
This commit is contained in:
@@ -467,7 +467,7 @@ fetch_register (int regno)
|
||||
{
|
||||
if (regno < FP0_REGNUM)
|
||||
supply_register (regno, (char *) &a_tss + regno_mapping[regno].tss_ofs);
|
||||
else if (FP_REGNUM_P (regno) || FPC_REGNUM_P (regno))
|
||||
else if (i386_fp_regnum_p (regno) || i386_fpc_regnum_p (regno))
|
||||
i387_supply_register (regno, (char *) &npx);
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
@@ -492,7 +492,7 @@ store_register (int regno)
|
||||
{
|
||||
if (regno < FP0_REGNUM)
|
||||
regcache_collect (regno, (char *) &a_tss + regno_mapping[regno].tss_ofs);
|
||||
else if (FP_REGNUM_P (regno) || FPC_REGNUM_P (regno))
|
||||
else if (i386_fp_regnum_p (regno) || i386_fpc_regnum_p (regno))
|
||||
i387_fill_fsave ((char *) &npx, regno);
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
|
||||
Reference in New Issue
Block a user