diff options
author | Jesper Nilsson <jespern@axis.com> | 2014-01-15 08:42:37 -0500 |
---|---|---|
committer | Jesper Nilsson <jespern@axis.com> | 2014-01-15 08:44:02 -0500 |
commit | e269a869417cd4053b37da1b19186902d3cbf63b (patch) | |
tree | 6d97e80f40859b62cfa8a1a634a1c3ad944681b1 /arch/cris/include/arch-v10 | |
parent | e7672be573afa078e8d85d5ad0202b78bd6bd1fd (diff) |
Drop code for CRISv10 CPU simulator
That simulator is dead and redundant.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/include/arch-v10')
-rw-r--r-- | arch/cris/include/arch-v10/arch/io.h | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/arch/cris/include/arch-v10/arch/io.h b/arch/cris/include/arch-v10/arch/io.h index f627ad0b8a3d..4a724172877f 100644 --- a/arch/cris/include/arch-v10/arch/io.h +++ b/arch/cris/include/arch-v10/arch/io.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _ASM_ARCH_CRIS_IO_H | 1 | #ifndef _ASM_ARCH_CRIS_IO_H |
2 | #define _ASM_ARCH_CRIS_IO_H | 2 | #define _ASM_ARCH_CRIS_IO_H |
3 | 3 | ||
4 | #include <arch/svinto.h> | ||
5 | |||
6 | /* Etrax shadow registers - which live in arch/cris/kernel/shadows.c */ | 4 | /* Etrax shadow registers - which live in arch/cris/kernel/shadows.c */ |
7 | 5 | ||
8 | extern unsigned long gen_config_ii_shadow; | 6 | extern unsigned long gen_config_ii_shadow; |
@@ -34,7 +32,7 @@ extern volatile unsigned long *port_csp4_addr; | |||
34 | 32 | ||
35 | /* The LED's on various Etrax-based products are set differently. */ | 33 | /* The LED's on various Etrax-based products are set differently. */ |
36 | 34 | ||
37 | #if defined(CONFIG_ETRAX_NO_LEDS) || defined(CONFIG_SVINTO_SIM) | 35 | #if defined(CONFIG_ETRAX_NO_LEDS) |
38 | #undef CONFIG_ETRAX_PA_LEDS | 36 | #undef CONFIG_ETRAX_PA_LEDS |
39 | #undef CONFIG_ETRAX_PB_LEDS | 37 | #undef CONFIG_ETRAX_PB_LEDS |
40 | #undef CONFIG_ETRAX_CSP0_LEDS | 38 | #undef CONFIG_ETRAX_CSP0_LEDS |
@@ -171,29 +169,4 @@ extern volatile unsigned long *port_csp4_addr; | |||
171 | #define SOFT_SHUTDOWN() | 169 | #define SOFT_SHUTDOWN() |
172 | #endif | 170 | #endif |
173 | 171 | ||
174 | /* Console I/O for simulated etrax100. Use #ifdef so erroneous | ||
175 | use will be evident. */ | ||
176 | #ifdef CONFIG_SVINTO_SIM | ||
177 | /* Let's use the ucsim interface since it lets us do write(2, ...) */ | ||
178 | #define SIMCOUT(s,len) \ | ||
179 | asm ("moveq 4,$r9 \n\t" \ | ||
180 | "moveq 2,$r10 \n\t" \ | ||
181 | "move.d %0,$r11 \n\t" \ | ||
182 | "move.d %1,$r12 \n\t" \ | ||
183 | "push $irp \n\t" \ | ||
184 | "move 0f,$irp \n\t" \ | ||
185 | "jump -6809 \n" \ | ||
186 | "0: \n\t" \ | ||
187 | "pop $irp" \ | ||
188 | : : "rm" (s), "rm" (len) : "r9","r10","r11","r12","memory") | ||
189 | #define TRACE_ON() __extension__ \ | ||
190 | ({ int _Foofoo; __asm__ volatile ("bmod [%0],%0" : "=r" (_Foofoo) : "0" \ | ||
191 | (255)); _Foofoo; }) | ||
192 | |||
193 | #define TRACE_OFF() do { __asm__ volatile ("bmod [%0],%0" :: "r" (254)); } while (0) | ||
194 | #define SIM_END() do { __asm__ volatile ("bmod [%0],%0" :: "r" (28)); } while (0) | ||
195 | #define CRIS_CYCLES() __extension__ \ | ||
196 | ({ unsigned long c; asm ("bmod [%1],%0" : "=r" (c) : "r" (27)); c;}) | ||
197 | #endif /* ! defined CONFIG_SVINTO_SIM */ | ||
198 | |||
199 | #endif | 172 | #endif |