--- zzzz-none-000/linux-4.9.218/arch/mips/include/asm/mach-pmcs-msp71xx/msp_regops.h 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ac-750/linux-4.9.218/arch/mips/include/asm/mach-pmcs-msp71xx/msp_regops.h 2022-11-30 09:46:19.000000000 +0000 @@ -77,7 +77,7 @@ __asm__ __volatile__( " .set push \n" - " .set arch=r4000 \n" + " .set arch=mips32r2 \n" "1: ll %0, %1 # set_value_reg32 \n" " and %0, %2 \n" " or %0, %3 \n" @@ -99,7 +99,7 @@ __asm__ __volatile__( " .set push \n" - " .set arch=r4000 \n" + " .set arch=mips32r2 \n" "1: ll %0, %1 # set_reg32 \n" " or %0, %2 \n" " sc %0, %1 \n" @@ -120,7 +120,7 @@ __asm__ __volatile__( " .set push \n" - " .set arch=r4000 \n" + " .set arch=mips32r2 \n" "1: ll %0, %1 # clear_reg32 \n" " and %0, %2 \n" " sc %0, %1 \n" @@ -141,7 +141,7 @@ __asm__ __volatile__( " .set push \n" - " .set arch=r4000 \n" + " .set arch=mips32r2 \n" "1: ll %0, %1 # toggle_reg32 \n" " xor %0, %2 \n" " sc %0, %1 \n" @@ -217,7 +217,7 @@ #define custom_read_reg32(address, tmp) \ __asm__ __volatile__( \ " .set push \n" \ - " .set arch=r4000 \n" \ + " .set arch=mips32r2 \n" \ "1: ll %0, %1 #custom_read_reg32 \n" \ " .set pop \n" \ : "=r" (tmp), "=" GCC_OFF_SMALL_ASM() (*address) \ @@ -226,7 +226,7 @@ #define custom_write_reg32(address, tmp) \ __asm__ __volatile__( \ " .set push \n" \ - " .set arch=r4000 \n" \ + " .set arch=mips32r2 \n" \ " sc %0, %1 #custom_write_reg32 \n" \ " "__beqz"%0, 1b \n" \ " nop \n" \