diff mbox

[1/2] sh: Drop dependence for 29bit mode of trigger_address_error()

Message ID AANLkTim7PR--Y_fueeMtdvnVX8BUJZK0iwG-rModFYzK@mail.gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Nobuhiro Iwamatsu June 8, 2010, 2 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/sh/include/asm/system_32.h b/arch/sh/include/asm/system_32.h
index 51296b3..9bd2684 100644
--- a/arch/sh/include/asm/system_32.h
+++ b/arch/sh/include/asm/system_32.h
@@ -216,13 +216,12 @@  int handle_unaligned_access(insn_size_t
instruction, struct pt_regs *regs,

 static inline void trigger_address_error(void)
 {
-	if (__in_29bit_mode())
-		__asm__ __volatile__ (
-			"ldc %0, sr\n\t"
-			"mov.l @%1, %0"
-			:
-			: "r" (0x10000000), "r" (0x80000001)
-		);
+	__asm__ __volatile__ (
+		"ldc %0, sr\n\t"
+		"mov.l @%1, %0"
+		:
+		: "r" (0x10000000), "r" (0x80000001)
+	);
 }