URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1389 |
Rev 1432 |
Line 42... |
Line 42... |
#include "opcode/or32.h"
|
#include "opcode/or32.h"
|
#include "mprofiler.h"
|
#include "mprofiler.h"
|
#include "profiler.h"
|
#include "profiler.h"
|
#include "sim-config.h"
|
#include "sim-config.h"
|
#include "dumpverilog.h"
|
#include "dumpverilog.h"
|
|
#include "spr_defs.h"
|
#include "execute.h"
|
#include "execute.h"
|
#include "debug_unit.h"
|
#include "debug_unit.h"
|
#include "debug.h"
|
#include "debug.h"
|
#include "trace.h"
|
#include "trace.h"
|
#include "stats.h"
|
#include "stats.h"
|
Line 89... |
Line 90... |
{
|
{
|
int i;
|
int i;
|
PRINTF("starting to dump mem...\n");
|
PRINTF("starting to dump mem...\n");
|
for(i=from; i<to; ) {
|
for(i=from; i<to; ) {
|
struct label_entry *entry;
|
struct label_entry *entry;
|
unsigned int _insn;
|
uint32_t insn;
|
PRINTF("i=%x :: ", i);
|
PRINTF("i=%x :: ", i);
|
|
|
if (verify_memoryarea(i) && (entry = get_label(i)))
|
if (verify_memoryarea(i) && (entry = get_label(i)))
|
PRINTF("label: %s |", entry->name);
|
PRINTF("label: %s |", entry->name);
|
|
|
iqueue[0].insn = _insn = evalsim_mem32(i);
|
insn = evalsim_mem32(i);
|
iqueue[0].insn_index = insn_decode(_insn);
|
disassemble_insn (insn);
|
disassemble_insn (_insn);
|
PRINTF("%08x %s\n", insn, disassembled);
|
PRINTF("%08x %s\n", _insn, disassembled);
|
i += 4;
|
i += insn_len( iqueue[0].insn_index );
|
|
}
|
}
|
}
|
}
|
|
|
static int sim_cmd_quit(int argc, char **argv) /* quit */
|
static int sim_cmd_quit(int argc, char **argv) /* quit */
|
{
|
{
|
Line 277... |
Line 277... |
if(argc != 2) {
|
if(argc != 2) {
|
PRINTF("pc <value>\n");
|
PRINTF("pc <value>\n");
|
return 0;
|
return 0;
|
}
|
}
|
|
|
pc = strtoul(argv[1], NULL, 0);
|
cpu_state.pc = strtoul(argv[1], NULL, 0);
|
pcnext = pc + 4;
|
pcnext = cpu_state.pc + 4;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
static int sim_cmd_breaks(int argc, char **argv) /* print breakpoints */
|
static int sim_cmd_breaks(int argc, char **argv) /* print breakpoints */
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.