aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/mips.igen
diff options
context:
space:
mode:
authorJames Lemke <jlemke@cygnus>1998-06-16 18:13:46 +0000
committerJames Lemke <jlemke@cygnus>1998-06-16 18:13:46 +0000
commit1106213c560f0adee00816e97017585deff2bc8d (patch)
treecb95e9a0ee48a9cbca8af6a7efe9986e7f5c16bc /sim/mips/mips.igen
parente6db63245411a50e702a30b136803bbb74162671 (diff)
downloadfsf-binutils-gdb-1106213c560f0adee00816e97017585deff2bc8d.zip
fsf-binutils-gdb-1106213c560f0adee00816e97017585deff2bc8d.tar.gz
fsf-binutils-gdb-1106213c560f0adee00816e97017585deff2bc8d.tar.bz2
Fix unresolved external error for sky_cpcond0 on non-SKY builds.
Diffstat (limited to 'sim/mips/mips.igen')
-rw-r--r--sim/mips/mips.igen8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/mips/mips.igen b/sim/mips/mips.igen
index 3f38d7a..a9479b2 100644
--- a/sim/mips/mips.igen
+++ b/sim/mips/mips.igen
@@ -5384,10 +5384,12 @@
*r5900:
// start-sanitize-sky
{
+#ifdef TARGET_SKY
address_word offset = EXTEND16 (OFFSET) << 2;
extern int sky_cpcond0;
if (sky_cpcond0 == 0)
DELAY_SLOT (NIA + offset);
+#endif
}
// end-sanitize-sky
// end-sanitize-r5900
@@ -5407,10 +5409,12 @@
*r5900:
// start-sanitize-sky
{
+#ifdef TARGET_SKY
address_word offset = EXTEND16 (OFFSET) << 2;
extern int sky_cpcond0;
if (sky_cpcond0 == 0)
DELAY_SLOT (NIA + offset);
+#endif
}
// end-sanitize-sky
// end-sanitize-r5900
@@ -5423,10 +5427,12 @@
*r5900:
// start-sanitize-sky
{
+#ifdef TARGET_SKY
address_word offset = EXTEND16 (OFFSET) << 2;
extern int sky_cpcond0;
if (sky_cpcond0 != 0)
DELAY_SLOT (NIA + offset);
+#endif
}
// end-sanitize-sky
// end-sanitize-r5900
@@ -5447,10 +5453,12 @@
*r5900:
// start-sanitize-sky
{
+#ifdef TARGET_SKY
address_word offset = EXTEND16 (OFFSET) << 2;
extern int sky_cpcond0;
if (sky_cpcond0 != 0)
DELAY_SLOT (NIA + offset);
+#endif
}
// end-sanitize-sky
// end-sanitize-r5900