Commit a460d7a1 by Andrew Stubbs Committed by Andrew Stubbs

lib1funcs.asm (ic_invalidate): Move ICBI out of the delay slot.

2009-04-06  Andrew Stubbs  <ams@codesourcery.com>

	* config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
	delay slot.
	(ic_invalidate_array): Likewise.

From-SVN: r145588
parent 5020dbd6
2009-04-06 Andrew Stubbs <ams@codesourcery.com>
* config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
delay slot.
(ic_invalidate_array): Likewise.
2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com> 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
* calls.c (emit_library_call_value_1): Fix a problem with parameter * calls.c (emit_library_call_value_1): Fix a problem with parameter
......
/* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, /* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006 2004, 2005, 2006, 2009
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it This file is free software; you can redistribute it and/or modify it
...@@ -2084,8 +2084,9 @@ GLOBAL(ic_invalidate): ...@@ -2084,8 +2084,9 @@ GLOBAL(ic_invalidate):
GLOBAL(ic_invalidate): GLOBAL(ic_invalidate):
ocbwb @r4 ocbwb @r4
synco synco
rts
icbi @r4 icbi @r4
rts
nop
ENDFUNC(GLOBAL(ic_invalidate)) ENDFUNC(GLOBAL(ic_invalidate))
#elif defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__) || (defined(__SH4_NOFPU__) && !defined(__SH5__)) #elif defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__) || (defined(__SH4_NOFPU__) && !defined(__SH5__))
/* For system code, we use ic_invalidate_line_i, but user code /* For system code, we use ic_invalidate_line_i, but user code
...@@ -2151,8 +2152,10 @@ GLOBAL(ic_invalidate): ...@@ -2151,8 +2152,10 @@ GLOBAL(ic_invalidate):
GLOBAL(ic_invalidate_array): GLOBAL(ic_invalidate_array):
add r1,r4 add r1,r4
synco synco
rts
icbi @r4 icbi @r4
rts
nop
.align 2
.long 0 .long 0
ENDFUNC(GLOBAL(ic_invalidate_array)) ENDFUNC(GLOBAL(ic_invalidate_array))
#elif defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__) || (defined(__SH4_NOFPU__) && !defined(__SH5__)) #elif defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__) || (defined(__SH4_NOFPU__) && !defined(__SH5__))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment