URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1549 to Rev 1550
- ↔ Reverse comparison
Rev 1549 → Rev 1550
/trunk/or1ksim/mprofiler.c
58,7 → 58,7
/* File to read from */ |
static FILE *fprof = 0; |
|
void mp_help () |
void mp_help (void) |
{ |
PRINTF ("mprofiler <-d|-p|-a|-w> [-f filename] [-g group] from to\n"); |
PRINTF ("\t-d\t--detail\t\tdetailed output\n"); |
95,7 → 95,7
return h->cnt[index]; |
} |
|
void init () |
void init (void) |
{ |
int i; |
for (i = 0; i < HASH_SIZE; i++) |
/trunk/or1ksim/sim-config.h
236,14 → 236,11
/* Executes set sim command. Returns nonzero if error. */ |
void set_config_command (int argc, char **argv); |
|
/* Outputs C structure of current config to file */ |
void output_cfg (FILE *f); |
void init_defconfig(void); |
|
void init_defconfig(); |
|
int parse_args(int argc, char *argv[]); |
|
void print_config(); |
void print_config(void); |
|
void sim_done(void); |
|
/trunk/or1ksim/mprofiler.h
37,6 → 37,6
#define HASH_FUNC(x) ((x) & 0xffff) |
|
int main_mprofiler (int argc, char *argv[]); |
void mp_help(); |
void mp_help(void); |
|
#endif /* not __MPROFILER_H */ |
/trunk/or1ksim/debug/debug_unit.c
77,13 → 77,13
runtime.cpu.stalled = state; |
} |
|
void du_reset() |
void du_reset(void) |
{ |
development.riscop = 0; |
set_stall_state (0); |
} |
|
void du_clock() |
void du_clock(void) |
{ |
watchpoints=0; |
}; |
/trunk/or1ksim/debug/gdbcomm.c
164,7 → 164,7
return sockfd; |
} |
|
void BlockJTAG() |
void BlockJTAG(void) |
{ |
struct pollfd fds[2]; |
int n = 0; |
260,7 → 260,7
} /* End of while statement */ |
} |
|
void JTAGRequest() |
void JTAGRequest(void) |
{ |
struct sockaddr_in sa; |
struct sockaddr* addr = (struct sockaddr*)&sa; |
320,7 → 320,7
gdb_fd = fd; |
} |
|
void GDBRequest() |
void GDBRequest(void) |
{ |
JTAGProxyWriteMessage msg_write; |
JTAGProxyReadMessage msg_read; |
660,7 → 660,7
return 0; |
} |
|
int gdbcomm_init () |
int gdbcomm_init (void) |
{ |
serverPort = config.debug.server_port; |
if((server_fd = GetServerSocket("or1ksim","tcp",serverPort))) |
/trunk/or1ksim/cpu/or32/dyn_rec.c
459,7 → 459,7
} |
|
/* Signals a page as dirty */ |
void dirtyfy_page(struct dyn_page *dp) |
static void dirtyfy_page(struct dyn_page *dp) |
{ |
oraddr_t check; |
|
/trunk/or1ksim/cpu/or32/execute.c
295,7 → 295,7
} |
|
/* This code actually updates the PC value. */ |
static inline void update_pc () |
static inline void update_pc (void) |
{ |
cpu_state.delay_insn = next_delay_insn; |
pcprev = cpu_state.pc; /* Store value for later */ |
605,7 → 605,7
} |
|
/* Reset the CPU */ |
void cpu_reset() |
void cpu_reset(void) |
{ |
int i; |
struct hist_exec *hist_exec_head = NULL; |
/trunk/or1ksim/cpu/or1k/sprs.c
44,7 → 44,7
DEFAULT_DEBUG_CHANNEL(spr); |
DECLARE_DEBUG_CHANNEL(immu); |
|
int audio_cnt = 0; |
static int audio_cnt = 0; |
|
static FILE *fo = 0; |
|
/trunk/or1ksim/toplevel.c
68,7 → 68,7
#include "cuc.h" |
|
/* CVS revision number. */ |
const char rcsrev[] = "$Revision: 1.132 $"; |
const char rcsrev[] = "$Revision: 1.133 $"; |
|
inline void debug(int level, const char *format, ...) |
{ |
148,7 → 148,7
struct sim_reset_hook *next; |
}; |
|
struct sim_reset_hook *sim_reset_hooks = NULL; |
static struct sim_reset_hook *sim_reset_hooks = NULL; |
|
/* Registers a new reset hook, called when sim_reset below is called */ |
void reg_sim_reset(void (*reset_hook)(void *), void *dat) |
346,8 → 346,8
void recalc_do_stats(void) |
{ |
extern int do_stats; |
do_stats = config.cpu.dependstats || config.cpu.superscalar || |
config.cpu.dependstats || config.sim.history || config.sim.exe_log; |
do_stats = config.cpu.superscalar || config.cpu.dependstats || |
config.sim.history || config.sim.exe_log; |
} |
|
/* Main function */ |
/trunk/or1ksim/sim-config.c
61,10 → 61,8
|
struct config_section *sections = NULL; |
|
void init_defconfig() |
void init_defconfig(void) |
{ |
int i; |
|
memset(&config, 0, sizeof(config)); |
/* Sim */ |
config.sim.exe_log = 0; |
232,7 → 230,7
return 0; |
} |
|
void print_config() |
void print_config(void) |
{ |
if (config.sim.verbose) { |
char temp[20]; |