Line 62... |
Line 62... |
if (temp4 == temp1)
|
if (temp4 == temp1)
|
or1k_mstats.byteadd++;
|
or1k_mstats.byteadd++;
|
}
|
}
|
INSTRUCTION (l_sw) {
|
INSTRUCTION (l_sw) {
|
int old_cyc = 0;
|
int old_cyc = 0;
|
IFF (config.cpu.sbuf_len) old_cyc = runtime.sim.mem_cycles;
|
if (config.cpu.sbuf_len) old_cyc = runtime.sim.mem_cycles;
|
set_mem32(PARAM0, PARAM1, &breakpoint);
|
set_mem32(PARAM0, PARAM1, &breakpoint);
|
if (config.cpu.sbuf_len) {
|
if (config.cpu.sbuf_len) {
|
int t = runtime.sim.mem_cycles;
|
int t = runtime.sim.mem_cycles;
|
runtime.sim.mem_cycles = old_cyc;
|
runtime.sim.mem_cycles = old_cyc;
|
sbuf_store (t - old_cyc);
|
sbuf_store (t - old_cyc);
|
}
|
}
|
}
|
}
|
INSTRUCTION (l_sb) {
|
INSTRUCTION (l_sb) {
|
int old_cyc = 0;
|
int old_cyc = 0;
|
IFF (config.cpu.sbuf_len) old_cyc = runtime.sim.mem_cycles;
|
if (config.cpu.sbuf_len) old_cyc = runtime.sim.mem_cycles;
|
set_mem8(PARAM0, PARAM1, &breakpoint);
|
set_mem8(PARAM0, PARAM1, &breakpoint);
|
if (config.cpu.sbuf_len) {
|
if (config.cpu.sbuf_len) {
|
int t = runtime.sim.mem_cycles;
|
int t = runtime.sim.mem_cycles;
|
runtime.sim.mem_cycles = old_cyc;
|
runtime.sim.mem_cycles = old_cyc;
|
sbuf_store (t- old_cyc);
|
sbuf_store (t- old_cyc);
|
}
|
}
|
}
|
}
|
INSTRUCTION (l_sh) {
|
INSTRUCTION (l_sh) {
|
int old_cyc = 0;
|
int old_cyc = 0;
|
IFF (config.cpu.sbuf_len) old_cyc = runtime.sim.mem_cycles;
|
if (config.cpu.sbuf_len) old_cyc = runtime.sim.mem_cycles;
|
set_mem16(PARAM0, PARAM1, &breakpoint);
|
set_mem16(PARAM0, PARAM1, &breakpoint);
|
if (config.cpu.sbuf_len) {
|
if (config.cpu.sbuf_len) {
|
int t = runtime.sim.mem_cycles;
|
int t = runtime.sim.mem_cycles;
|
runtime.sim.mem_cycles = old_cyc;
|
runtime.sim.mem_cycles = old_cyc;
|
sbuf_store (t - old_cyc);
|
sbuf_store (t - old_cyc);
|