* i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
* x86-64-tdep.c (x86_64_store_return_value): Use I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
This commit is contained in:
parent
bcf48cc700
commit
f783586b81
3 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
2003-10-26 Mark Kettenis <kettenis@gnu.org>
|
2003-10-26 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
|
||||||
|
* x86-64-tdep.c (x86_64_store_return_value): Use
|
||||||
|
I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
|
||||||
|
|
||||||
Change register numbers to enumartion values.
|
Change register numbers to enumartion values.
|
||||||
* i386-tdep.h (enum i386_regnum): New.
|
* i386-tdep.h (enum i386_regnum): New.
|
||||||
(I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
|
(I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
|
||||||
|
|
|
@ -104,8 +104,6 @@ struct gdbarch_tdep
|
||||||
|
|
||||||
/* Floating-point registers. */
|
/* Floating-point registers. */
|
||||||
|
|
||||||
#define FPU_REG_RAW_SIZE 10
|
|
||||||
|
|
||||||
/* All FPU control regusters (except for FIOFF and FOOFF) are 16-bit
|
/* All FPU control regusters (except for FIOFF and FOOFF) are 16-bit
|
||||||
(at most) in the FPU, but are zero-extended to 32 bits in GDB's
|
(at most) in the FPU, but are zero-extended to 32 bits in GDB's
|
||||||
register cache. */
|
register cache. */
|
||||||
|
|
|
@ -761,7 +761,7 @@ x86_64_store_return_value (struct type *type, struct regcache *regcache,
|
||||||
if (TYPE_CODE_FLT == TYPE_CODE (type) && len == 16)
|
if (TYPE_CODE_FLT == TYPE_CODE (type) && len == 16)
|
||||||
{
|
{
|
||||||
ULONGEST fstat;
|
ULONGEST fstat;
|
||||||
char buf[FPU_REG_RAW_SIZE];
|
char buf[I386_MAX_REGISTER_SIZE];
|
||||||
|
|
||||||
/* Returning floating-point values is a bit tricky. Apart from
|
/* Returning floating-point values is a bit tricky. Apart from
|
||||||
storing the return value in %st(0), we have to simulate the
|
storing the return value in %st(0), we have to simulate the
|
||||||
|
|
Loading…
Add table
Reference in a new issue