From 1106213c560f0adee00816e97017585deff2bc8d Mon Sep 17 00:00:00 2001 From: James Lemke Date: Tue, 16 Jun 1998 18:13:46 +0000 Subject: [PATCH] Fix unresolved external error for sky_cpcond0 on non-SKY builds. --- sim/mips/mips.igen | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sim/mips/mips.igen b/sim/mips/mips.igen index 3f38d7a09b..a9479b2f47 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