SPARC: Fix Leon3 cache control
commit60f356e86d66a4a22530ec7570f7582af602d200
authorFabien Chouteau <chouteau@adacore.com>
Mon, 31 Jan 2011 10:36:54 +0000 (31 11:36 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 1 Feb 2011 17:01:41 +0000 (1 17:01 +0000)
tree243b43a088e1cba43673a99edba65061dc162ce8
parent2685d2961b51437d0c7bc71f4ed7c320f6cbd010
SPARC: Fix Leon3 cache control

The "leon3_cache_control_int" (op_helper.c) function is called within leon3.c
which leads to segfault error with the global "env".

Now cache control is a CPU feature and everything is handled in op_helper.c.

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/leon3.c
target-sparc/cpu.h
target-sparc/helper.c
target-sparc/op_helper.c