URL
https://opencores.org/ocsvn/plasma/plasma/trunk
Subversion Repositories plasma
Compare Revisions
- This comparison shows the changes necessary to convert path
/plasma/trunk
- from Rev 412 to Rev 413
- ↔ Reverse comparison
Rev 412 → Rev 413
/tools/mlite.c
39,14 → 39,9
|
int kbhit(void) |
{ |
struct termios oldt, newt; |
struct timeval tv; |
fd_set read_fd; |
|
tcgetattr(STDIN_FILENO, &oldt); |
newt = oldt; |
newt.c_lflag &= ~(ICANON | ECHO); |
tcsetattr(STDIN_FILENO, TCSANOW, &newt); |
tv.tv_sec=0; |
tv.tv_usec=0; |
FD_ZERO(&read_fd); |
53,7 → 48,6
FD_SET(0,&read_fd); |
if(select(1, &read_fd, NULL, NULL, &tv) == -1) |
return 0; |
//tcsetattr(STDIN_FILENO, TCSANOW, &oldt); |
if(FD_ISSET(0,&read_fd)) |
return 1; |
return 0; |
69,7 → 63,7
newt.c_lflag &= ~(ICANON | ECHO); |
tcsetattr(STDIN_FILENO, TCSANOW, &newt); |
ch = getchar(); |
//tcsetattr(STDIN_FILENO, TCSANOW, &oldt); |
tcsetattr(STDIN_FILENO, TCSANOW, &oldt); |
return ch; |
} |
#else |
/tools/makefile
32,10 → 32,14
BIN_MIPS = |
VHDL_DIR = ../vhdl |
LINUX_PWD = ./ |
GCC_MIPS = $(BIN_MIPS)mips-elf-gcc $(CFLAGS) |
AS_MIPS = $(BIN_MIPS)mips-elf-as |
LD_MIPS = $(BIN_MIPS)mips-elf-ld |
DUMP_MIPS = $(BIN_MIPS)mips-elf-objdump |
#GCC_MIPS = $(BIN_MIPS)mips-elf-gcc $(CFLAGS) |
#AS_MIPS = $(BIN_MIPS)mips-elf-as |
#LD_MIPS = $(BIN_MIPS)mips-elf-ld |
#DUMP_MIPS = $(BIN_MIPS)mips-elf-objdump |
GCC_MIPS = mips-uclibc-gcc $(CFLAGS) |
AS_MIPS = mips-uclibc-as |
LD_MIPS = mips-uclibc-ld |
DUMP_MIPS = mips-uclibc-objdump |
CONVERT_BIN = $(LINUX_PWD)convert_bin.exe |
#CONVERT_BIN = $(BIN_MIPS)mips-elf-objcopy -I elf32-big -O binary test.axf test.bin |
|
42,6 → 46,7
endif |
|
CFLAGS = -O2 -Wall -c -s |
CFLAGS += -fno-pic -mips1 -mno-abicalls |
|
all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe |
@echo make targets = count, opcodes, pi, test, run, tohex,\ |
119,7 → 124,7
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) count.c |
$(GCC_MIPS) no_os.c |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \ |
$(LD_MIPS) -Ttext 0 -e entry -Map test.map -s -N -o test.axf \ |
boot.o count.o no_os.o |
-$(DUMP_MIPS) --disassemble test.axf > test.lst |
$(CONVERT_BIN) |
149,7 → 154,7
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) count.c |
$(GCC_MIPS) no_os.c |
$(LD_MIPS) -Ttext 0x2000 -eentry -Map test.map -s -N -o test.axf \ |
$(LD_MIPS) -Ttext 0x1000 -eentry -Map test.map -s -N -o test.axf \ |
boot.o count.o no_os.o |
-$(DUMP_MIPS) --disassemble test.axf > test.lst |
$(CONVERT_BIN) |