For personal research, I want to compare the performance of two microprocessor: Intel 8051 and Sparc Leon3. In order to evaluate these, an execution of a set of some representative functions is done through an ISS (Instruction Set Simulator). Then, I collect statistics and trivially reason about data figured out from the simulation.
Since the core of the 8051 microcontroller that I'm using as reference does not have external memory neither a cache, I want to disable the instruction cache and the data cache on the Leon3 to obtain comparable data with those of the first one.
I'm using TSIM for the simulation of Leon 3. I read on the data sheet that this use a control register to set the behaviour of the cache. So I added an inline assembly instruction, to functions used in benchmark, that writes in this register and sets the cache to disable. I'm sure that the bits in the register are changed but when I do the simulation I see the caches written. I can see this because of commands that I can tell to simulator.
I'm here to ask if you can help with this problem or you have some ideas because I'm stuck.