Search
lxdream.org :: lxdream :: r24:87219209d93e
lxdream 0.9.1
released Jun 29
Download Now
changeset24:87219209d93e
parent23:1ec3acd0594d
child25:fa2d21d57942
authornkeynes
dateSat Dec 24 03:27:55 2005 +0000 (14 years ago)
Rearrange directory structure to be a little neater
remove tst & tst1
src/Makefile.am
src/tst.c
src/tst1.c
1.1 --- a/src/Makefile.am Fri Dec 23 11:44:55 2005 +0000
1.2 +++ b/src/Makefile.am Sat Dec 24 03:27:55 2005 +0000
1.3 @@ -10,19 +10,23 @@
1.4
1.5 dream_SOURCES = \
1.6 main.c \
1.7 - support.c support.h \
1.8 - interface.c interface.h \
1.9 - callbacks.c callbacks.h \
1.10 - gui.c gui.h mmr_win.c debug_win.c dump_win.c \
1.11 mem.c mem.h mmio.h \
1.12 - asic.c asic.h pvr2.c pvr2.h ide.c ide.h \
1.13 + asic.c asic.h \
1.14 + pvr2.c pvr2.h \
1.15 + gdrom/ide.c gdrom/ide.h \
1.16 video.c dreamcast.c dreamcast.h \
1.17 - maple.c maple.h maple/controller.c maple/controller.h \
1.18 sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c \
1.19 sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
1.20 sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/watch.c \
1.21 aica/armcore.c aica/armcore.h aica/armdasm.c aica/armmem.c \
1.22 aica/aica.c aica/aica.h \
1.23 + maple/maple.c maple/maple.h
1.24 + maple/controller.c maple/controller.h \
1.25 + gui/support.c gui/support.h \
1.26 + gui/interface.c gui/interface.h \
1.27 + gui/callbacks.c gui/callbacks.h \
1.28 + gui/gui.c gui/gui.h gui/mmr_win.c
1.29 + gui/debug_win.c gui/dump_win.c \
1.30 fileio.c ipbin.c util.c
1.31
1.32 dream_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
2.1 --- a/src/tst.c Fri Dec 23 11:44:55 2005 +0000
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,15 +0,0 @@
2.4 -#define D #define
2.5 -#define tst(a) D a 1
2.6 -
2.7 -tst(forte)
2.8 -
2.9 -int main()
2.10 -{
2.11 - signed int a = 0xFFFFFFFF;
2.12 - unsigned int b = 0xFFFFFFFF;
2.13 -
2.14 - a >>= 16;
2.15 - b >>= 16;
2.16 -
2.17 - printf( "%08x %08x\n", a, b );
2.18 -}
3.1 --- a/src/tst1.c Fri Dec 23 11:44:55 2005 +0000
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,57 +0,0 @@
3.4 -#include <stdint.h>
3.5 -
3.6 -#define PORT_R 1
3.7 -#define PORT_W 2
3.8 -#define PORT_MEM 4 /* store written value */
3.9 -#define PORT_RW 3
3.10 -#define PORT_MRW 7
3.11 -#define UNDEFINED 0
3.12 -
3.13 -struct mmio_region {
3.14 - char *id, *desc;
3.15 - uint32_t base;
3.16 - char *mem;
3.17 - struct mmio_port {
3.18 - char *id, *desc;
3.19 - int width;
3.20 - uint32_t offset;
3.21 - uint32_t default;
3.22 - int flags;
3.23 - } *ports;
3.24 -};
3.25 -
3.26 -#define _MACROIZE #define
3.27 -
3.28 -#define MMIO_REGION_BEGIN(b,id,d) struct mmio_region mmio_region_##id = { #id, d, b, NULL,
3.29 -#define LONG_PORT( o,id,f,def,d ) { #id, desc, 32, o, def, f }, \
3.30 -_MACROIZE port_##id o \
3.31 -_MACROIZE reg_##id (*(uint32_t *)(mmio_region_##id.mem + o))
3.32 -#define WORD_PORT( o,id,f,def,d ) { #id, desc, 16, o, def, f },
3.33 -#define BYTE_PORT( o,id,f,def,d ) { #id, desc, 8, o, def, f },
3.34 -#define MMIO_REGION_END {NULL, NULL, 0, 0, 0} };
3.35 -
3.36 -MMIO_REGION_BEGIN( 0xFF000000, MMU, "MMU Registers" )
3.37 - LONG_PORT( 0x000, PTEH, PORT_MRW, UNDEFINED, "Page table entry high" ),
3.38 - LONG_PORT( 0x004, PTEL, PORT_MRW, UNDEFINED, "Page table entry low" ),
3.39 -MMIO_REGION_END
3.40 -
3.41 -MMIO_REGION_BEGIN( BSC, 0xFF800000, "I/O Port Registers" )
3.42 - LONG_PORT( 0x000, BCR1, PORT_MRW, 0, "" ),
3.43 - WORD_PORT( 0x004, BCR2, PORT_MRW, 0x3FFC, "" ),
3.44 - LONG_PORT( 0x008, WCR1, PORT_MRW, 0x77777777, "" ),
3.45 - LONG_PORT( 0x00C, WCR2, PORT_MRW, 0xFFFEEFFF, "" ),
3.46 - LONG_PORT( 0x010, WCR3, PORT_MRW, 0x07777777, "" ),
3.47 - LONG_PORT( 0x02C, PCTRA, PORT_MRW, 0, "Port control register A" ),
3.48 - WORD_PORT( 0x030, PDTRA, PORT_RW, UNDEFINED, "Port data register A" ),
3.49 - LONG_PORT( 0x040, PCTRB, PORT_MRW, 0, "Port control register B" ),
3.50 - WORD_PORT( 0x044, PCTRB, PORT_RW, UNDEFINED, "Port data register B" ),
3.51 - WORD_PORT( 0x048, GPIOIC, PORT_MRW, 0, "GPIO interrupt control register" )
3.52 -MMIO_REGION_END
3.53 -
3.54 -MMIO_REGION_BEGIN( SCI, 0xFFE00000, "Serial Controller Registers" )
3.55 -
3.56 -MMIO_REGION_END
3.57 -
3.58 -MMIO_REGIN_BEGIN( SCIF, 0xFFE80000, "Serial Controller (FIFO) Registers" )
3.59 -MMIO_REGION_END
3.60 -
.