URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 3 |
Rev 30 |
Line 34... |
Line 34... |
|
|
void set_insnbrkpoint(unsigned long addr)
|
void set_insnbrkpoint(unsigned long addr)
|
{
|
{
|
addr &= 0xfffffffc; /* 32-bit aligned */
|
addr &= 0xfffffffc; /* 32-bit aligned */
|
|
|
if (addr < MEMORY_LEN)
|
if (addr < (MEMORY_START + MEMORY_LEN))
|
if (mem[addr].brk) {
|
if (mem[addr].brk) {
|
mem[addr].brk = 0;
|
mem[addr].brk = 0;
|
printf("\nBreakpoint at 0x%.8lx cleared.\n", addr);
|
printf("\nBreakpoint at 0x%.8lx cleared.\n", addr);
|
} else {
|
} else {
|
mem[addr].brk = 1;
|
mem[addr].brk = 1;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.