fakeFastMem

parent 395371b8
This diff is collapsed.
...@@ -253,6 +253,7 @@ STATIC_INLINE uae_u32 sign_extend8 (uae_u32 v) ...@@ -253,6 +253,7 @@ STATIC_INLINE uae_u32 sign_extend8 (uae_u32 v)
static void fdi_decode (const uae_u8 *stream, unsigned int size, uae_u8 *out) static void fdi_decode (const uae_u8 *stream, unsigned int size, uae_u8 *out)
{ {
unsigned int i;
uae_u8 sign_extend, sixteen_bit, sub_stream_shift; uae_u8 sign_extend, sixteen_bit, sub_stream_shift;
NODE root; NODE root;
NODE *current_node; NODE *current_node;
...@@ -260,7 +261,6 @@ static void fdi_decode (const uae_u8 *stream, unsigned int size, uae_u8 *out) ...@@ -260,7 +261,6 @@ static void fdi_decode (const uae_u8 *stream, unsigned int size, uae_u8 *out)
memset (out, 0, size * 4); memset (out, 0, size * 4);
sub_stream_shift = 1; sub_stream_shift = 1;
while (sub_stream_shift) { while (sub_stream_shift) {
unsigned int i;
//sub-stream header decode //sub-stream header decode
sign_extend = *stream++; sign_extend = *stream++;
...@@ -967,7 +967,7 @@ static void ibm_data (FDI *fdi, const uae_u8 *data, uae_u8 *crc, unsigned int le ...@@ -967,7 +967,7 @@ static void ibm_data (FDI *fdi, const uae_u8 *data, uae_u8 *crc, unsigned int le
{ {
unsigned int i; unsigned int i;
uae_u8 crcbuf[2]; uae_u8 crcbuf[2];
uae_u16 crcv = 0; uae_u16 crcv;
word_add (fdi, 0x4489); word_add (fdi, 0x4489);
word_add (fdi, 0x4489); word_add (fdi, 0x4489);
...@@ -1179,14 +1179,14 @@ static void track_amiga (struct fdi *fdi, unsigned int first_sector, unsigned in ...@@ -1179,14 +1179,14 @@ static void track_amiga (struct fdi *fdi, unsigned int first_sector, unsigned in
} }
static void track_atari_st (struct fdi *fdi, unsigned int max_sector) static void track_atari_st (struct fdi *fdi, unsigned int max_sector)
{ {
unsigned int i, gap3 = 0; unsigned int i, gap3;
uae_u8 *p = fdi->track_src; uae_u8 *p = fdi->track_src;
switch (max_sector) { switch (max_sector) {
case 9: case 9:
gap3 = 40; gap3 = 40;
break; break;
case 10: case 10:
gap3 = 24; gap3 = 24;
break; break;
} }
...@@ -1207,13 +1207,13 @@ static void track_pc (struct fdi *fdi, unsigned int max_sector) ...@@ -1207,13 +1207,13 @@ static void track_pc (struct fdi *fdi, unsigned int max_sector)
uae_u8 *p = fdi->track_src; uae_u8 *p = fdi->track_src;
switch (max_sector) { switch (max_sector) {
case 8: case 8:
gap3 = 116; gap3 = 116;
break; break;
case 9: case 9:
gap3 = 54; gap3 = 54;
break; break;
default: default:
gap3 = 100; /* fixme */ gap3 = 100; /* fixme */
break; break;
} }
...@@ -1823,7 +1823,7 @@ static int decode_lowlevel_track (FDI *fdi, unsigned int track, struct fdi_cache ...@@ -1823,7 +1823,7 @@ static int decode_lowlevel_track (FDI *fdi, unsigned int track, struct fdi_cache
uae_u32 maxidx, totalavg, weakbits; uae_u32 maxidx, totalavg, weakbits;
unsigned int i, j, len, pulses, indexoffset; unsigned int i, j, len, pulses, indexoffset;
unsigned int avg_free, min_free = 0, max_free = 0, idx_free; unsigned int avg_free, min_free = 0, max_free = 0, idx_free;
unsigned int idx_off1 = 0, idx_off2 = 0, idx_off3 = 0; unsigned int idx_off1, idx_off2, idx_off3;
d = fdi->track_dst; d = fdi->track_dst;
p1 = fdi->track_src; p1 = fdi->track_src;
......
...@@ -63,7 +63,7 @@ extern void wait_cpu_cycle_write_ce020 (uaecptr addr, int mode, uae_u32 v); ...@@ -63,7 +63,7 @@ extern void wait_cpu_cycle_write_ce020 (uaecptr addr, int mode, uae_u32 v);
#define bogomem_start 0x00C00000 #define bogomem_start 0x00C00000
#define cardmem_start 0x00E00000 #define cardmem_start 0x00E00000
#define kickmem_start 0x00F80000 #define kickmem_start 0x00F80000
extern uaecptr z3fastmem_start, z3fastmem2_start; extern uaecptr z3fastmem_start, z3fastmem2_start, z3chipmem_start;
extern uaecptr p96ram_start; extern uaecptr p96ram_start;
extern uaecptr fastmem_start; extern uaecptr fastmem_start;
extern uaecptr a3000lmem_start, a3000hmem_start; extern uaecptr a3000lmem_start, a3000hmem_start;
......
...@@ -80,7 +80,7 @@ uae_u32 allocated_chipmem; ...@@ -80,7 +80,7 @@ uae_u32 allocated_chipmem;
uae_u32 allocated_fastmem; uae_u32 allocated_fastmem;
uae_u32 allocated_bogomem; uae_u32 allocated_bogomem;
uae_u32 allocated_gfxmem; uae_u32 allocated_gfxmem;
uae_u32 allocated_z3fastmem, allocated_z3fastmem2; uae_u32 allocated_z3fastmem, allocated_z3fastmem2, allocated_z3chipmem;
uae_u32 allocated_a3000lmem; uae_u32 allocated_a3000lmem;
uae_u32 allocated_a3000hmem; uae_u32 allocated_a3000hmem;
uae_u32 allocated_cardmem; uae_u32 allocated_cardmem;
......
...@@ -445,7 +445,7 @@ configure:4344: $? = 0 ...@@ -445,7 +445,7 @@ configure:4344: $? = 0
configure:4344: result: yes configure:4344: result: yes
configure:4350: checking for _doprnt configure:4350: checking for _doprnt
configure:4350: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5 configure:4350: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/ccQVX6ss.o: In function `main': /tmp/cckxlJDb.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:67: undefined reference to `_doprnt' /home/gnostic/puaex/src/tools/conftest.c:67: undefined reference to `_doprnt'
collect2: ld returned 1 exit status collect2: ld returned 1 exit status
configure:4350: $? = 1 configure:4350: $? = 1
...@@ -533,7 +533,7 @@ configure:4364: $? = 0 ...@@ -533,7 +533,7 @@ configure:4364: $? = 0
configure:4364: result: yes configure:4364: result: yes
configure:4364: checking for strcmpi configure:4364: checking for strcmpi
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5 configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/ccML3BqH.o: In function `main': /tmp/ccsvYvOq.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `strcmpi' /home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `strcmpi'
collect2: ld returned 1 exit status collect2: ld returned 1 exit status
configure:4364: $? = 1 configure:4364: $? = 1
...@@ -613,7 +613,7 @@ configure: failed program was: ...@@ -613,7 +613,7 @@ configure: failed program was:
configure:4364: result: no configure:4364: result: no
configure:4364: checking for stricmp configure:4364: checking for stricmp
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5 configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/ccLZtbQE.o: In function `main': /tmp/ccAfsPHv.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `stricmp' /home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `stricmp'
collect2: ld returned 1 exit status collect2: ld returned 1 exit status
configure:4364: $? = 1 configure:4364: $? = 1
......
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