Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 36f42f9b authored by Martin Ruckert's avatar Martin Ruckert
Browse files

adapting to compile vmb mmixcpu

parent d6e0c5ca
# the directory with the MMIXware sources # the directory with the MMIXware sources
MMIXWARE=./mmixware MMIXWARE=./mmixware
INCLUDES=-I ../../vmb/src/util -I ../../vmb/src/vmbmmixlib INCLDIR=-I ../../vmb/src/util -I ../../vmb/src/vmbmmixlib
LIBDIR=-L. -L../../vmb/src/util -L../../vmb/src/vmbmmixlib
LIBSIM= libboot.c libfinal.c libload.c libprint.c libstats.c \ LIBSIM= libboot.c libfinal.c libload.c libprint.c libstats.c \
libcommand.c libinit.c libmem.c libprofile.c libtrace.c \ libcommand.c libinit.c libmem.c libprofile.c libtrace.c \
...@@ -17,7 +18,7 @@ LIBSRC= libname.c libbase.c ...@@ -17,7 +18,7 @@ LIBSRC= libname.c libbase.c
LIBOBJ= $(LIBSIM:.c=.o) $(LIBAL:.c=.o) $(LIBSRC:.c=.o) mmix-arith.o mmix-io.o LIBOBJ= $(LIBSIM:.c=.o) $(LIBAL:.c=.o) $(LIBSRC:.c=.o) mmix-arith.o mmix-io.o
CC= gcc CC= gcc
CFLAGS= -Wall -ggdb -O0 $(INCLUDES) CFLAGS= -Wall -ggdb -O0 $(INCLDIR) $(LIBDIR)
AR = ar AR = ar
ARFLAGS = cru ARFLAGS = cru
RANLIB = ranlib RANLIB = ranlib
...@@ -60,6 +61,10 @@ libmmix.a: $(LIBOBJ) ...@@ -60,6 +61,10 @@ libmmix.a: $(LIBOBJ)
mmix-sim: libmmix.a mmix-sim.c mmix-sim: libmmix.a mmix-sim.c
$(CC) $(CFLAGS) mmix-sim.c -L. -lmmix -o mmix-sim $(CC) $(CFLAGS) mmix-sim.c -L. -lmmix -o mmix-sim
mmixcpu: libmmix.a mmix-vmb.c
$(CC) $(CFLAGS) mmix-vmb.c -lmmix -lvmbmmix -lvmb -lpthread -o mmixcpu
mmixal: libmmix.a mmixal.c mmixal: libmmix.a mmixal.c
$(CC) $(CFLAGS) mmixal.c -L. -lmmix -o mmixal $(CC) $(CFLAGS) mmixal.c -L. -lmmix -o mmixal
......
...@@ -61,7 +61,7 @@ if (vmb_get_interrupt(&vmb,&new_Q.h,&new_Q.l)==1) \ ...@@ -61,7 +61,7 @@ if (vmb_get_interrupt(&vmb,&new_Q.h,&new_Q.l)==1) \
otherwise it will resume at Main */ otherwise it will resume at Main */
#define MMIX_BOOT #define MMIX_BOOT
#define MMIX_PRINT #undef MMIX_PRINT
#ifdef MMIX_PRINT #ifdef MMIX_PRINT
extern int mmix_printf(char *format,...); extern int mmix_printf(char *format,...);
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#include "breaks.h" #include "breaks.h"
#include "vmb.h" #include "vmb.h"
device_info vmb = {0}; device_info vmb = {0};
static char localhost[]="localhost"; char localhost[]="localhost";
static int busport=9002; /* on which port to connect to the bus */ int port=9002; /* on which port to connect to the bus */
static char *bushost=localhost; /* on which host to connect to the bus */ char *host=localhost; /* on which host to connect to the bus */
int main(argc,argv) int main(argc,argv)
...@@ -33,8 +33,8 @@ int main(argc,argv) ...@@ -33,8 +33,8 @@ int main(argc,argv)
mmix_lib_initialize(); mmix_lib_initialize();
mmix_commandline(argc,argv); mmix_commandline(argc,argv);
if (bushost==NULL) panic("No Bus given. Use Option -B[host:]port"); if (host==NULL) panic("No Bus given. Use Option -B[host:]port");
init_mmix_bus(bushost,busport,"MMIX CPU"); init_mmix_bus(host,port,"MMIX CPU");
mmix_initialize(); mmix_initialize();
...@@ -64,7 +64,7 @@ boot: ...@@ -64,7 +64,7 @@ boot:
mmix_commandline(argc, argv); mmix_commandline(argc, argv);
write_all_data_cache(); write_all_data_cache();
clear_all_instruction_cache(); clear_all_instruction_cache();
if (interacting) set_break(g[rWW],exec_bit); if (interacting) mem_find(g[rWW])->bkpt|=exec_bit;
while (true) { while (true) {
if (interrupt && !breakpoint) breakpoint=interacting=true, interrupt=false; if (interrupt && !breakpoint) breakpoint=interacting=true, interrupt=false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment