Commit Graph

117 Commits

Author SHA1 Message Date
Markus Fröschle
d1e8fcdfd1 2012-10-16 19:51:22 +00:00
Vincent Rivière
feabd52783 Fixed FPGA initialization bit ordering. 2012-10-16 19:18:38 +00:00
Markus Fröschle
00b8e433a3 added function to clear all cache lines (from illegal_instruction.S) 2012-10-16 17:55:57 +00:00
Markus Fröschle
e287bfe3b3 added function to clear cache 2012-10-16 17:51:37 +00:00
Markus Fröschle
4895dfbb5e 2012-10-16 17:33:55 +00:00
Markus Fröschle
32efa1c7f5 2012-10-16 16:04:19 +00:00
Markus Fröschle
9b48b76b8c 2012-10-16 16:02:09 +00:00
Markus Fröschle
cd84b8fa0e startup file in assembler language 2012-10-16 15:54:58 +00:00
Markus Fröschle
0f0f7995ae removed unused declarations 2012-10-16 15:52:35 +00:00
Markus Fröschle
cad7ba2505 added -mbitfield to init_fpga.o, it now compiles to nearly the same code than Fredi wrote. 2012-10-16 09:23:09 +00:00
Markus Fröschle
8cf58b9cfb added init_fpga.o to object files 2012-10-16 09:22:03 +00:00
Markus Fröschle
eb9e8ded58 common definitions for sysinit.c and init_fpga.c 2012-10-16 09:21:30 +00:00
Markus Fröschle
6a9192cb2b extracted init_fpga() 2012-10-16 09:20:36 +00:00
Markus Fröschle
711f63fc3e replaced bit shifts with symbolic constants 2012-10-16 09:17:52 +00:00
Markus Fröschle
1851da101e extracted FPGA initialization into separate source file 2012-10-16 08:37:55 +00:00
Markus Fröschle
14286957a7 bit checks to wait for FPGA ready were the wrong way round.
Allowed the compiler to use m68k bitfield instructions (-mbitfield). Now produces nearly the same code than Fredi's assembler sources.
2012-10-16 06:13:48 +00:00
Markus Fröschle
b06765d595 FPGA pins (clock, config) were the wrong way round for FPGA programming in init_fpga. Corrected. 2012-10-16 05:53:53 +00:00
Markus Fröschle
1796318f0d simplified TOS copy according to dip switch setting 2012-10-15 16:17:26 +00:00
Markus Fröschle
990b26776e 2012-10-15 11:38:20 +00:00
Markus Fröschle
af0056209d fixed startup code (comment at wrong position) which prevented RAMBAR0 from getting initialized 2012-10-15 10:19:45 +00:00
Markus Fröschle
91f6b0ffcf calculation of cache flush adresses was wrong 2012-10-15 06:21:40 +00:00
Markus Fröschle
3cbbddd010 calculation of BaS copy target adress and final jump was wrong. 2012-10-15 06:20:12 +00:00
Markus Fröschle
57d22356fc (Hopefully) fixed wrong calculation of BaS copy adresses 2012-10-15 06:14:43 +00:00
Markus Fröschle
8aecee376c fixed inline asm statements 2012-10-15 06:03:11 +00:00
Markus Fröschle
8f56ab2597 2012-10-15 05:48:17 +00:00
Markus Fröschle
1aba86e9d3 modified as of Vincenct's suggestions 2012-10-15 05:45:32 +00:00
Markus Fröschle
5f674f8787 2012-10-14 21:21:44 +00:00
Markus Fröschle
5233d61cd7 mine is nicer ;) 2012-10-14 21:12:03 +00:00
Markus Fröschle
838e960ee2 2012-10-14 21:09:12 +00:00
Vincent Rivière
707ccf004c Fixed correct inline assembly usage. 2012-10-14 20:54:20 +00:00
Vincent Rivière
dfd46f42c5 Fixed correct MCF_MMU_MMUCR usage. 2012-10-14 20:53:14 +00:00
Vincent Rivière
ec1af05887 Fixed wrong initial PC.. 2012-10-14 20:48:31 +00:00
Markus Fröschle
4e7c863f08 2012-10-14 19:59:08 +00:00
Markus Fröschle
25e5c80dc5 changed srecord extension to .s19 according to Vincent's suggestion 2012-10-14 19:58:31 +00:00
Markus Fröschle
89050f4212 2012-10-14 15:59:28 +00:00
Markus Fröschle
9bd2f69cd5 2012-10-14 14:30:10 +00:00
Markus Fröschle
24f5d47693 2012-10-14 14:28:25 +00:00
Markus Fröschle
052175e398 got rid of a lot of unused variables and some compiler warnings 2012-10-14 14:25:51 +00:00
Markus Fröschle
6d9ecd0b55 removed object files list from final linker call since that's misleading (controlled through link script itself) 2012-10-14 14:15:31 +00:00
Markus Fröschle
439c638d40 corrected wrong loop branches 2012-10-14 14:08:43 +00:00
Markus Fröschle
6fd24d44ce forgot new cache functions in linker control file 2012-10-14 14:05:24 +00:00
Markus Fröschle
12c280c405 added functions (in cache.[ch]) to flush data and instruction caches for specific memory regions 2012-10-14 10:37:54 +00:00
Markus Fröschle
1792368231 added prototype for cache handling 2012-10-14 10:36:44 +00:00
Markus Fröschle
94d89e7ddf called instruction _and_ data cache flush after BaS copy 2012-10-14 10:35:16 +00:00
Markus Fröschle
853a77f366 Translated BaS copy routines to C.
Added functionality to flush caches before jumping into copied code
2012-10-14 10:34:18 +00:00
Markus Fröschle
36c633c54d Made compiler more picky by adding -Wall to CFLAGS.
This showed up more warnings where some are already fixed.
2012-10-14 09:24:25 +00:00
Markus Fröschle
160bf24b81 still had the wrong CPU in the Makefile. Not its "-mcpu=5474" as suggested. 2012-10-14 08:35:41 +00:00
Markus Fröschle
9402ce6204 eclipse 2012-10-14 08:12:45 +00:00
Markus Fröschle
eb332e7cb1 (Nearly) clean build.
Still one warning (possible integer overflow) left - need to look into it
2012-10-14 07:04:04 +00:00
Markus Fröschle
e311f9d5a2 fixed "clean" target to really clean
added a "depend" target
2012-10-14 07:01:07 +00:00