aboutsummaryrefslogtreecommitdiff
path: root/gdb/i960-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-11-13 03:10:35 +0000
committerAndrew Cagney <cagney@redhat.com>2001-11-13 03:10:35 +0000
commit0cb2e7c50f6723f6ad9a492425a4826a963b36ba (patch)
treeb35a39b681773cfe9931662fdfce7c718a9f38bd /gdb/i960-tdep.c
parent2c10d744f336cd5e553000c20813102ed6d6d0fd (diff)
downloadgdb-0cb2e7c50f6723f6ad9a492425a4826a963b36ba.zip
gdb-0cb2e7c50f6723f6ad9a492425a4826a963b36ba.tar.gz
gdb-0cb2e7c50f6723f6ad9a492425a4826a963b36ba.tar.bz2
Eliminate REGISTER_CONVERTIBLE().
Diffstat (limited to 'gdb/i960-tdep.c')
-rw-r--r--gdb/i960-tdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/i960-tdep.c b/gdb/i960-tdep.c
index 197ac10..053c7fa 100644
--- a/gdb/i960-tdep.c
+++ b/gdb/i960-tdep.c
@@ -34,6 +34,16 @@
static CORE_ADDR next_insn (CORE_ADDR memaddr,
unsigned int *pword1, unsigned int *pword2);
+struct type *
+i960_register_type (int regnum)
+{
+ if (regnum < FP0_REGNUM)
+ return builtin_type_int32;
+ else
+ return builtin_type_i960_ext;
+}
+
+
/* Does the specified function use the "struct returning" convention
or the "value returning" convention? The "value returning" convention
almost invariably returns the entire value in registers. The