Treating empty cycles in performance simulator #1444
-
I was running some programs on the simulator and found a bit strange behaviour with empty loops. Assembler source file (empty_cycle.s): .globl _start
.section .text
_start:
j _start Building and running options:
Output:
Expected results (such results are obtained, if at least one instruction is added into the cycle, for example nop)
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Empty loops are often used as an indication to halt. mipt-mips/simulator/func_sim/alu.h Lines 49 to 53 in ba87224 |
Beta Was this translation helpful? Give feedback.
-
Does it have any practical usage? |
Beta Was this translation helpful? Give feedback.
-
No, that's why they are used to indicate simulation halt |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks for answer |
Beta Was this translation helpful? Give feedback.
-
You are welcome! |
Beta Was this translation helpful? Give feedback.
Empty loops are often used as an indication to halt.
Here is where it is handled:
mipt-mips/simulator/func_sim/alu.h
Lines 49 to 53 in ba87224