diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-06-28 01:13:20 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-06-28 01:13:20 -0400 |
commit | 941db36a67baeff563ea0eb9d66dad0b41c51200 (patch) | |
tree | 13f6b91fdac1bb38f03046a575bdd09491ec1eb2 /system/alpha/console/Makefile | |
parent | 0b01f186038e9226a3b15fe2dc910ba241b44867 (diff) | |
download | gem5-941db36a67baeff563ea0eb9d66dad0b41c51200.tar.xz |
pass the location of the m5 backdoor via the m5AlphaAccess variable
only compile one console
console/Makefile:
Now that the location of the m5 backdoor is passed into the
console via the m5AlphaAccess variable, we only need to
compile one console, and don't need to define TLASER or TSUNAMI
console/console.c:
Don't hardcode the location of the AlphaAccess structure, but
rely on m5 to pass in the correct value.
Setup "volatile struct AlphaAccess *m5AlphaAccess" for use and
get rid of the hardcoded usage.
Diffstat (limited to 'system/alpha/console/Makefile')
-rw-r--r-- | system/alpha/console/Makefile | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/system/alpha/console/Makefile b/system/alpha/console/Makefile index 728ab7a8d..e29c02b1a 100644 --- a/system/alpha/console/Makefile +++ b/system/alpha/console/Makefile @@ -36,34 +36,23 @@ LD=$(CROSS_COMPILE)ld DBMENTRY= fffffc0000010000 CFLAGS=-I . -I ../h -I$(M5)/dev -fno-builtin -Wa,-m21164 -OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o -TLOBJS+=$(OBJS) console_tl.o -TSOBJS+=$(OBJS) console_ts.o +OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o console.o ### Make sure that the M5 variable is set ### ifndef M5 $(error The M5 variable must be set) endif -all: console_tl console_ts +all: console %.o: %.S $(CC) $(CFLAGS) -nostdinc -o $@ -c $< -console_ts.o: console.c - $(CC) -g3 $(CFLAGS) -D TSUNAMI -o $@ -c $< - -console_tl.o: console.c - $(CC) -g3 $(CFLAGS) -D TLASER -o $@ -c $< - -printf.o: printf.c +%.o: %.c $(CC) -g3 $(CFLAGS) -o $@ -c $< -console_ts: $(TSOBJS) - $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared $(TSOBJS) -lc - -console_tl: $(TLOBJS) - $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared $(TLOBJS) -lc +console: $(OBJS) + $(LD) -o console -N -Ttext $(DBMENTRY) -non_shared $(OBJS) -lc clean: - rm -f *.o console_t? + rm -f *.o console |