From: James Lemke Date: Tue, 16 Jun 1998 18:13:46 +0000 (+0000) Subject: Fix unresolved external error for sky_cpcond0 on non-SKY builds. X-Git-Tag: gdb-4_18-branchpoint~1864 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1106213c560f0adee00816e97017585deff2bc8d;p=thirdparty%2Fbinutils-gdb.git Fix unresolved external error for sky_cpcond0 on non-SKY builds. --- diff --git a/sim/mips/mips.igen b/sim/mips/mips.igen index 3f38d7a09b6..a9479b2f473 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