1
0
mirror of https://github.com/open-simh/simh.git synced 2026-04-28 21:07:43 +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

@@ -343,7 +343,9 @@ void cpu_finishAutoload() {
/* CPU reset */
t_stat cpu_reset (DEVICE *dptr) {
// sim_printf("CPU RESET\n");
extern void pdq3_vm_init (void);
pdq3_vm_init();
// sim_printf("CPU RESET\n");
sim_brk_types = SWMASK('E')|SWMASK('R')|SWMASK('W');
sim_brk_dflt = SWMASK('E');

View File

@@ -34,7 +34,6 @@
#include <ctype.h>
t_stat parse_sym_m (char *cptr, t_value *val, int32 sw);
void pdq3_vm_init (void);
static t_stat pdq3_cmd_exstack(int32 arg, CONST char *buf);
static t_stat pdq3_cmd_exmscw(int32 arg, CONST char *buf);
static t_stat pdq3_cmd_extib(int32 arg, CONST char *buf);
@@ -94,8 +93,6 @@ CTAB pdq3_cmds[] = {
{ NULL, NULL, 0, NULL }
};
WEAK void (*sim_vm_init)(void) = &pdq3_vm_init;
/* Loader proper */
t_stat sim_load (FILE *fi, CONST char *cptr, CONST char *fnam, int flag)
{