1
0
mirror of https://github.com/simh/simh.git synced 2026-04-17 16:44:15 +00:00

SCP: Clean up WEAK definition and rework deprecated references to sim_vm_init

As discussed in #794
This commit is contained in:
Mark Pizzolato
2020-01-29 12:30:25 -08:00
parent ca4b733883
commit 8a858c181d
32 changed files with 59 additions and 51 deletions

View File

@@ -31,7 +31,6 @@
#include <ctype.h>
static t_bool symtrace = TRUE;
static void m68k_sim_init(void);
static t_stat hdump_cmd(int32 arg, CONST char* buf);
static t_stat symset_cmd(int32 arg, CONST char* buf);
static t_stat symclr_cmd(int32 arg, CONST char* buf);
@@ -56,8 +55,6 @@ static CTAB m68k_sim_cmds[] = {
{0,0,0,0}
};
WEAK void (*sim_vm_init)(void) = &m68k_sim_init;
typedef struct _symhash {
struct _symhash* nnext;
struct _symhash* vnext;
@@ -87,7 +84,7 @@ static void sym_clearall(void)
return;
}
static void m68k_sim_init(void)
void m68k_sim_init(void)
{
int i;
sim_vm_cmd = m68k_sim_cmds;

View File

@@ -130,6 +130,10 @@ static void sage_trapcallback(DEVICE* dptr,int trapnum)
static t_stat sagecpu_reset(DEVICE* dptr)
{
t_stat rc;
extern void m68k_sim_init(void);
m68k_sim_init();
/* set CPU pointers */
m68kcpu_dev = &sagecpu_dev;