URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Show entire file |
Details |
Blame |
View Log
Rev 786 |
Rev 790 |
Line 198... |
Line 198... |
// HAL_BREAKINST is the value of the breakpoint instruction and...
|
// HAL_BREAKINST is the value of the breakpoint instruction and...
|
// HAL_BREAKINST_SIZE is its size in bytes and...
|
// HAL_BREAKINST_SIZE is its size in bytes and...
|
// HAL_BREAKINST_TYPE is its type.
|
// HAL_BREAKINST_TYPE is its type.
|
|
|
#define HAL_BREAKPOINT(_label_) \
|
#define HAL_BREAKPOINT(_label_) \
|
asm volatile (" .globl _" #_label_ ";" \
|
asm volatile (" .globl " #_label_ ";" \
|
"_" #_label_ ":" \
|
#_label_ ":" \
|
" l.trap 1;" \
|
" l.trap 1;" \
|
);
|
);
|
|
|
#define HAL_BREAKINST (0x21000001) // l.trap 1 instruction
|
#define HAL_BREAKINST (0x21000001) // l.trap 1 instruction
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.