Linux Kernel
3.7.1
|
Go to the source code of this file.
Some low-level simulator definitions.
Definition in file sim_def.h.
#define _SIM_CONTROL_OPERATOR_BITS 8 |
#define SIM_CONTROL_ALLOW_MULTIPLE_CACHING 22 |
#define SIM_CONTROL_APPEND_MPIPE_MAGIC_BYTE 35 |
#define SIM_CONTROL_CHECKPOINT 3 |
#define SIM_CONTROL_CLEAR_MPIPE_MAGIC_BYTES 34 |
#define SIM_CONTROL_COMMAND 26 |
#define SIM_CONTROL_DISABLE_FUNCTIONAL 10 |
#define SIM_CONTROL_DISABLE_MEM_LOGGING 24 |
#define SIM_CONTROL_DLCLOSE 21 |
#define SIM_CONTROL_DLOPEN 20 |
If written to SPR_SIM_CONTROL, combined with a character (shifted by 8), indicates that a dll was loaded. Written to once for each character in "ADDR:PATH", plus a final NUL, where "ADDR" is a hexadecimal load address starting with "0x", and "PATH" is the executable name.
#define SIM_CONTROL_DUMP 5 |
#define SIM_CONTROL_ENABLE_FUNCTIONAL 9 |
#define SIM_CONTROL_ENABLE_FUNCTIONAL_BARRIER 11 |
#define SIM_CONTROL_ENABLE_MEM_LOGGING 23 |
#define SIM_CONTROL_ENABLE_MPIPE_LINK_MAGIC_BYTE 36 |
#define SIM_CONTROL_GRINDER_CLEAR 13 |
#define SIM_CONTROL_OS_EXEC 18 |
#define SIM_CONTROL_OS_EXIT 16 |
#define SIM_CONTROL_OS_FORK 15 |
#define SIM_CONTROL_OS_FORK_PARENT 33 |
#define SIM_CONTROL_OS_INTERP 19 |
If written to SPR_SIM_CONTROL, combined with a character (shifted by 8), indicates that an interpreter (PT_INTERP) was loaded. Written to once for each character in "ADDR:PATH", plus a final NUL, where "ADDR" is a hex load address starting with "0x", and "PATH" is the executable name.
#define SIM_CONTROL_OS_SWITCH 17 |
#define SIM_CONTROL_PANIC 27 |
#define SIM_CONTROL_PROFILER_CHIP_CLEAR 6 |
#define SIM_CONTROL_PROFILER_CHIP_DISABLE 7 |
#define SIM_CONTROL_PROFILER_CHIP_ENABLE 8 |
#define SIM_CONTROL_PROFILER_CLEAR 2 |
#define SIM_CONTROL_PROFILER_DISABLE 0 |
#define SIM_CONTROL_PROFILER_ENABLE 1 |
#define SIM_CONTROL_PUTC 12 |
#define SIM_CONTROL_SET_TRACING 4 |
#define SIM_CONTROL_SHAPING 25 |
#define SIM_CONTROL_SHAPING_RATE_BITS |
How many bits are available for the rate.
#define SIM_CONTROL_SHAPING_SHIM_ID_BITS 3 |
#define SIM_CONTROL_SHUTDOWN 14 |
#define SIM_CONTROL_SYSCALL 32 |
#define SIM_DUMP_SPR_ARG | ( | mask | ) | (SIM_CONTROL_DUMP | ((mask) << _SIM_CONTROL_OPERATOR_BITS)) |
#define SIM_PROFILER_CHIP_CLEAR_SPR_ARG | ( | mask | ) | (SIM_CONTROL_PROFILER_CHIP_CLEAR | ((mask) << _SIM_CONTROL_OPERATOR_BITS)) |
#define SIM_PROFILER_CHIP_DISABLE_SPR_ARG | ( | mask | ) | (SIM_CONTROL_PROFILER_CHIP_DISABLE | ((mask) << _SIM_CONTROL_OPERATOR_BITS)) |
#define SIM_PROFILER_CHIP_ENABLE_SPR_ARG | ( | mask | ) | (SIM_CONTROL_PROFILER_CHIP_ENABLE | ((mask) << _SIM_CONTROL_OPERATOR_BITS)) |
#define SIM_PROFILER_ENABLED_MASK 0x10000 |
#define SIM_PUTC_FLUSH_BINARY 0x101 |
#define SIM_PUTC_FLUSH_STRING 0x100 |
Computes the value to write to SPR_SIM_CONTROL to change a bitrate.
#define SIM_SYSCALL_ADD_WATCHPOINT 2 |
#define SIM_SYSCALL_QUERY_CPU_SPEED 6 |
#define SIM_SYSCALL_QUERY_WATCHPOINT 4 |
#define SIM_SYSCALL_REMOVE_WATCHPOINT 3 |
#define SIM_SYSCALL_VALIDATE_LINES_EVICTED 5 |
#define SIM_TRACE_FLAG_MASK 0xFFFF |
#define SIM_TRACE_SPR_ARG | ( | mask | ) | (SIM_CONTROL_SET_TRACING | ((mask) << _SIM_CONTROL_OPERATOR_BITS)) |