OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [tn_m001/] [or1ksim/] [toplevel.c] - Diff between revs 21 and 28

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 21 Rev 28
Line 38... Line 38...
#include "parse.h"
#include "parse.h"
#include "abstract.h"
#include "abstract.h"
#include "trace.h"
#include "trace.h"
#include "execute.h"
#include "execute.h"
 
 
 
#include "coff.h"
 
 
/* CVS revision number. */
/* CVS revision number. */
static const char rcsrev[] = "$Revision: 1.6 $";
static const char rcsrev[] = "$Revision: 1.7 $";
 
 
/* Continuos run versus single step tracing switch. */
/* Continuos run versus single step tracing switch. */
int cont_run;
int cont_run;
 
 
/* History of execution */
/* History of execution */
Line 463... Line 465...
        int i;
        int i;
        printf("starting to dump mem...\n");
        printf("starting to dump mem...\n");
        for(i=0; i<500; i++) {
        for(i=0; i<500; i++) {
                printf("i=%x :: ", i);
                printf("i=%x :: ", i);
                if(strlen(mem[i].label) != 0)
                if(strlen(mem[i].label) != 0)
                        printf("label: %s |", mem[i].label);
                        printf("label: %s |", mem[i].label->name);
                printf("%s ", mem[i].insn);
                printf("%s ", mem[i].insn->insn);
                if(strlen(mem[i].op1) != 0) printf("%s ", mem[i].op1);
                if(strlen(mem[i].insn->op1) != 0) printf("%s ", mem[i].insn->op1);
                if(strlen(mem[i].op2) != 0) printf("%s ", mem[i].op2);
                if(strlen(mem[i].insn->op2) != 0) printf("%s ", mem[i].insn->op2);
                if(strlen(mem[i].op3) != 0) printf("%s ", mem[i].op3);
                if(strlen(mem[i].insn->op3) != 0) printf("%s ", mem[i].insn->op3);
                if(strlen(mem[i].op4) != 0) printf("%s ", mem[i].op4);
                if(strlen(mem[i].insn->op4) != 0) printf("%s ", mem[i].insn->op4);
                printf("\n");
                printf("\n");
        }
        }
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.