* m68k-tdep.c (m68k_register_virtual_type): Use architecture
invariant return values.
This commit is contained in:
parent
1fdb3c684d
commit
03dac896be
2 changed files with 18 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-11-23 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* m68k-tdep.c (m68k_register_virtual_type): Use architecture
|
||||||
|
invariant return values.
|
||||||
|
|
||||||
2002-11-22 Andreas Schwab <schwab@suse.de>
|
2002-11-22 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* valops.c (value_slice): Move declaration of `offset' to avoid
|
* valops.c (value_slice): Move declaration of `offset' to avoid
|
||||||
|
|
|
@ -159,18 +159,19 @@ m68k_register_virtual_size (int regnum)
|
||||||
static struct type *
|
static struct type *
|
||||||
m68k_register_virtual_type (int regnum)
|
m68k_register_virtual_type (int regnum)
|
||||||
{
|
{
|
||||||
if (regnum == E_FPI_REGNUM)
|
if (regnum >= FP0_REGNUM && regnum <= FP0_REGNUM + 7)
|
||||||
return lookup_pointer_type (builtin_type_void);
|
return builtin_type_m68881_ext;
|
||||||
else if ((unsigned) regnum >= E_FPC_REGNUM)
|
|
||||||
return builtin_type_int;
|
if (regnum == E_FPI_REGNUM || regnum == PC_REGNUM)
|
||||||
else if ((unsigned) regnum >= FP0_REGNUM)
|
return builtin_type_void_func_ptr;
|
||||||
return builtin_type_long_double;
|
|
||||||
else if (regnum == PS_REGNUM)
|
if (regnum == E_FPC_REGNUM || regnum == E_FPS_REGNUM || regnum == PS_REGNUM)
|
||||||
return builtin_type_int;
|
return builtin_type_int32;
|
||||||
else if ((unsigned) regnum >= A0_REGNUM)
|
|
||||||
return lookup_pointer_type (builtin_type_void);
|
if (regnum >= A0_REGNUM && regnum <= A0_REGNUM + 7)
|
||||||
else
|
return builtin_type_void_data_ptr;
|
||||||
return builtin_type_int;
|
|
||||||
|
return builtin_type_int32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Function: m68k_register_name
|
/* Function: m68k_register_name
|
||||||
|
|
Loading…
Add table
Reference in a new issue