Commit 65b99a5c authored by mtufan's avatar mtufan

puae 2.3.3

parent 8dee2a58
...@@ -9,9 +9,11 @@ cd32=" --enable-cd32 " ...@@ -9,9 +9,11 @@ cd32=" --enable-cd32 "
a600=" --enable-gayle " a600=" --enable-gayle "
scsi=" --enable-scsi-device --enable-ncr --enable-a2091 " scsi=" --enable-scsi-device --enable-ncr --enable-a2091 "
other=" --with-caps --enable-amax " other=" --with-caps --enable-amax "
debug="--enable-profiling"
debug=""
# #
# #
./bootstrap.sh ./bootstrap.sh
./configure $base $cd32 $a600 $scsi $other CFLAGS="-m32" LDFLAGS="-m32" CPPFLAGS="-m32" CXXFLAGS="-m32" ./configure $base $cd32 $a600 $scsi $other $debug CFLAGS="-m32" LDFLAGS="-m32" CPPFLAGS="-m32" CXXFLAGS="-m32"
make clean make clean
make make
...@@ -371,6 +371,7 @@ static int filter (int input, struct filter_state *fs) ...@@ -371,6 +371,7 @@ static int filter (int input, struct filter_state *fs)
case FILTER_NONE: case FILTER_NONE:
return input; return input;
case FILTER_MODEL_A500: case FILTER_MODEL_A500:
fs->rc1 = a500e_filter1_a0 * input + (1 - a500e_filter1_a0) * fs->rc1 + DENORMAL_OFFSET; fs->rc1 = a500e_filter1_a0 * input + (1 - a500e_filter1_a0) * fs->rc1 + DENORMAL_OFFSET;
fs->rc2 = a500e_filter2_a0 * fs->rc1 + (1-a500e_filter2_a0) * fs->rc2; fs->rc2 = a500e_filter2_a0 * fs->rc1 + (1-a500e_filter2_a0) * fs->rc2;
......
...@@ -359,6 +359,7 @@ STATIC_INLINE void chipmem_agnus_wput2 (uaecptr addr, uae_u32 w) ...@@ -359,6 +359,7 @@ STATIC_INLINE void chipmem_agnus_wput2 (uaecptr addr, uae_u32 w)
last_custom_value1 = w; last_custom_value1 = w;
#ifndef BLITTER_DEBUG_NO_D #ifndef BLITTER_DEBUG_NO_D
chipmem_wput_indirect (addr, w); chipmem_wput_indirect (addr, w);
debug_wputpeekdma (addr, w);
#endif #endif
} }
......
...@@ -40,7 +40,8 @@ static uae_u8 play_qcode[MAX_TOTAL_SCSI_DEVICES][SUBQ_SIZE]; ...@@ -40,7 +40,8 @@ static uae_u8 play_qcode[MAX_TOTAL_SCSI_DEVICES][SUBQ_SIZE];
static TCHAR newimagefiles[MAX_TOTAL_SCSI_DEVICES][256]; static TCHAR newimagefiles[MAX_TOTAL_SCSI_DEVICES][256];
static int imagechangetime[MAX_TOTAL_SCSI_DEVICES]; static int imagechangetime[MAX_TOTAL_SCSI_DEVICES];
static bool cdimagefileinuse[MAX_TOTAL_SCSI_DEVICES], wasopen[MAX_TOTAL_SCSI_DEVICES]; static bool cdimagefileinuse[MAX_TOTAL_SCSI_DEVICES];
static bool wasopen[MAX_TOTAL_SCSI_DEVICES];
/* convert minutes, seconds and frames -> logical sector number */ /* convert minutes, seconds and frames -> logical sector number */
int msf2lsn (int msf) int msf2lsn (int msf)
...@@ -552,7 +553,7 @@ static void check_changes (int unitnum) ...@@ -552,7 +553,7 @@ static void check_changes (int unitnum)
imagechangetime[unitnum] = 8 * 50; imagechangetime[unitnum] = 8 * 50;
} }
} }
write_log ("CD: eject (%s)\n", pollmode ? "slow" : "fast"); write_log ("CD: eject (%s) open=%d\n", pollmode ? L"slow" : L"fast", wasopen[unitnum] ? 1 : 0);
#ifdef RETROPLATFORM #ifdef RETROPLATFORM
rp_cd_image_change (unitnum, NULL); rp_cd_image_change (unitnum, NULL);
#endif #endif
...@@ -570,12 +571,14 @@ static void check_changes (int unitnum) ...@@ -570,12 +571,14 @@ static void check_changes (int unitnum)
_tcscpy (changed_prefs.cdslots[unitnum].name, newimagefiles[unitnum]); _tcscpy (changed_prefs.cdslots[unitnum].name, newimagefiles[unitnum]);
currprefs.cdslots[unitnum].inuse = changed_prefs.cdslots[unitnum].inuse = cdimagefileinuse[unitnum]; currprefs.cdslots[unitnum].inuse = changed_prefs.cdslots[unitnum].inuse = cdimagefileinuse[unitnum];
newimagefiles[unitnum][0] = 0; newimagefiles[unitnum][0] = 0;
write_log ("CD: delayed insert '%s'\n", currprefs.cdslots[unitnum].name[0] ? currprefs.cdslots[unitnum].name : "<EMPTY>"); write_log ("CD: delayed insert '%s' (open=%d)\n", currprefs.cdslots[unitnum].name[0] ? currprefs.cdslots[unitnum].name : L"<EMPTY>", wasopen[unitnum] ? 1 : 0);
device_func_init (0); device_func_init (0);
if (wasopen[unitnum]) { if (wasopen[unitnum]) {
if (!device_func[unitnum]->opendev (unitnum, currprefs.cdslots[unitnum].name, 0)) { if (!device_func[unitnum]->opendev (unitnum, currprefs.cdslots[unitnum].name, 0)) {
write_log ("-> device open failed\n"); write_log ("-> device open failed\n");
wasopen[unitnum] = 0; wasopen[unitnum] = 0;
} else {
write_log ("-> device reopened\n");
} }
} }
if (currprefs.scsi && wasopen[unitnum]) { if (currprefs.scsi && wasopen[unitnum]) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* Copyright 1995-2000 Bernd Schmidt * Copyright 1995-2000 Bernd Schmidt
* Copyright 1995 Alessandro Bissacco * Copyright 1995 Alessandro Bissacco
* Copyright 2000-2008 Toni Wilen * Copyright 2000-2011 Toni Wilen
*/ */
/* There are a couple of concepts of "coordinates" in this file. /* There are a couple of concepts of "coordinates" in this file.
......
...@@ -70,14 +70,6 @@ bootcode: ...@@ -70,14 +70,6 @@ bootcode:
residenthack residenthack
movem.l d0-d2/a0-a2/a6,-(sp) movem.l d0-d2/a0-a2/a6,-(sp)
move.w #$FF38,d0
moveq #17,d1
bsr.w getrtbase
jsr (a0)
tst.l d0
beq.s .rsh
move.l 4.w,a6 move.l 4.w,a6
cmp.w #37,20(a6) cmp.w #37,20(a6)
bcs.s .rsh bcs.s .rsh
...@@ -232,6 +224,7 @@ FSIN_none: ...@@ -232,6 +224,7 @@ FSIN_none:
;FSIN_scandone: ;FSIN_scandone:
; jsr -$007e(a6) ; Enable ; jsr -$007e(a6) ; Enable
filesys_dev_storeinfo filesys_dev_storeinfo
moveq #3,d4 ; MEMF_CHIP | MEMF_PUBLIC moveq #3,d4 ; MEMF_CHIP | MEMF_PUBLIC
cmp.w #36,20(a6) cmp.w #36,20(a6)
...@@ -240,11 +233,6 @@ filesys_dev_storeinfo ...@@ -240,11 +233,6 @@ filesys_dev_storeinfo
FSIN_ksold FSIN_ksold
; add >2MB-6MB chip RAM to memory list ; add >2MB-6MB chip RAM to memory list
lea $210000,a1
; do not add if RAM detected already
jsr -$216(a6) ; TypeOfMem
tst.l d0
bne.s FSIN_chip_done
move.w #$FF80,d0 move.w #$FF80,d0
bsr.w getrtbase bsr.w getrtbase
jsr (a0) jsr (a0)
...@@ -1238,15 +1226,15 @@ FSML_loop: ...@@ -1238,15 +1226,15 @@ FSML_loop:
clr.b 172(a3) clr.b 172(a3)
.nodc .nodc
move.l a4,d0 move.l a4,d0
beq.s nonnotif beq.s FSML_loop
; notify reply? ; notify reply?
cmp.w #38, 18(a4) cmp.w #38, 18(a4)
bne.s nonnotif bne.s nonotif
cmp.l #NOTIFY_CLASS, 20(a4) cmp.l #NOTIFY_CLASS, 20(a4)
bne.s nonnotif bne.s nonotif
cmp.w #NOTIFY_CODE, 24(a4) cmp.w #NOTIFY_CODE, 24(a4)
bne.s nonnotif bne.s nonotif
move.l 26(a4),a0 ; NotifyRequest move.l 26(a4),a0 ; NotifyRequest
move.l 12(a0),d0 ; flags move.l 12(a0),d0 ; flags
and.l #NRF_WAIT_REPLY|NRF_MAGIC,d0 and.l #NRF_WAIT_REPLY|NRF_MAGIC,d0
...@@ -1264,20 +1252,15 @@ nonoti ...@@ -1264,20 +1252,15 @@ nonoti
jsr FreeMem(a6) jsr FreeMem(a6)
bra.w FSML_loop bra.w FSML_loop
nonnotif nonotif
moveq #-2,d2 ; lock timeout "done" value
move.l a4,d0
beq.s FSML_check_queue_other
move.l 10(a4),d3 ; ln_Name move.l 10(a4),d3 ; ln_Name
bne.b FSML_FromDOS bne.b FSML_FromDOS
moveq #-1,d2 ; normal "done" value
; It's a dummy packet indicating that some queued command finished. ; It's a dummy packet indicating that some queued command finished.
move.w #$FF50,d0 ; exter_int_helper move.w #$FF50,d0 ; exter_int_helper
bsr.w getrtbase bsr.w getrtbase
moveq.l #1,d0 moveq.l #1,d0
jsr (a0) jsr (a0)
FSML_check_queue_other:
; Go through the queue and reply all those that finished. ; Go through the queue and reply all those that finished.
lea.l 4(a3),a2 lea.l 4(a3),a2
move.l (a2),a0 move.l (a2),a0
...@@ -1289,8 +1272,7 @@ FSML_check_old: ...@@ -1289,8 +1272,7 @@ FSML_check_old:
; This field may be accessed concurrently by several UAE threads. ; This field may be accessed concurrently by several UAE threads.
; This _should_ be harmless on all reasonable machines. ; This _should_ be harmless on all reasonable machines.
move.l 4(a0),d0 move.l 4(a0),d0
cmp.l d0,d2 bpl.b FSML_check_next
bne.b FSML_check_next
movem.l a0/a1,-(a7) movem.l a0/a1,-(a7)
move.l 10(a0),a4 move.l 10(a0),a4
bsr.b ReplyOne bsr.b ReplyOne
...@@ -2079,14 +2061,6 @@ CLIP_END = (CLIP_POINTER_PREFS+32) ...@@ -2079,14 +2061,6 @@ CLIP_END = (CLIP_POINTER_PREFS+32)
clipboard_init: clipboard_init:
movem.l a5/a6,-(sp) movem.l a5/a6,-(sp)
move.w #$FF38,d0
moveq #17,d1
bsr.w getrtbase
jsr (a0)
btst #0,d0
beq.s .noclip
move.l 4.w,a6 move.l 4.w,a6
move.l #CLIP_END,d0 move.l #CLIP_END,d0
move.l #$10001,d1 move.l #$10001,d1
...@@ -2108,7 +2082,7 @@ clipboard_init: ...@@ -2108,7 +2082,7 @@ clipboard_init:
moveq #-10,d0 moveq #-10,d0
move.l #10000,d1 move.l #10000,d1
bsr.w createproc bsr.w createproc
.noclip
moveq #0,d0 moveq #0,d0
movem.l (sp)+,a5/a6 movem.l (sp)+,a5/a6
rts rts
...@@ -2439,15 +2413,13 @@ cliphook: ...@@ -2439,15 +2413,13 @@ cliphook:
consolehook: consolehook:
move.l 4.w,a6 move.l 4.w,a6
moveq #-1,d2 moveq #-1,d2
move.w #$FF38,d0 move.w #$FF38,d0
moveq #17,d1 moveq #100,d1
bsr.w getrtbase bsr.w getrtbase
jsr (a0) jsr (a0)
btst #1,d0 tst.l d0
beq.s .ch2 beq.s .ch2
moveq #0,d2 moveq #0,d2
jsr -$0084(a6) ;Forbid jsr -$0084(a6) ;Forbid
lea 350(a6),a0 ;DeviceList lea 350(a6),a0 ;DeviceList
......
...@@ -138,7 +138,7 @@ int input_get_default_mouse (struct uae_input_device *uid, int i, int port, int ...@@ -138,7 +138,7 @@ int input_get_default_mouse (struct uae_input_device *uid, int i, int port, int
{ {
} }
uae_u8 *gfx_lock_picasso (void) uae_u8 *gfx_lock_picasso (int fullupdate)
{ {
} }
......
...@@ -1843,7 +1843,7 @@ void gfx_set_picasso_state (int on) ...@@ -1843,7 +1843,7 @@ void gfx_set_picasso_state (int on)
DX_SetPalette (0, 256); DX_SetPalette (0, 256);
} }
uae_u8 *gfx_lock_picasso (void) uae_u8 *gfx_lock_picasso (int fullupdate)
{ {
DEBUG_LOG ("Function: gfx_lock_picasso\n"); DEBUG_LOG ("Function: gfx_lock_picasso\n");
......
...@@ -891,7 +891,7 @@ void gfx_set_picasso_state (int on) ...@@ -891,7 +891,7 @@ void gfx_set_picasso_state (int on)
set_window_for_amiga (); set_window_for_amiga ();
} }
uae_u8 *gfx_lock_picasso (void) uae_u8 *gfx_lock_picasso (int fullupdate)
{ {
return linear_mem; return linear_mem;
} }
......
...@@ -1485,7 +1485,7 @@ void gfx_set_picasso_state (int on) ...@@ -1485,7 +1485,7 @@ void gfx_set_picasso_state (int on)
DX_SetPalette_real (0, 256); DX_SetPalette_real (0, 256);
} }
uae_u8 *gfx_lock_picasso (void) uae_u8 *gfx_lock_picasso (int fullupdate)
{ {
#ifdef USE_DGA_EXTENSION #ifdef USE_DGA_EXTENSION
if (dgamode) if (dgamode)
......
...@@ -751,7 +751,7 @@ extern void gfx_set_picasso_modeinfo (uae_u32 w, uae_u32 h, uae_u32 d, RGBFTYPE ...@@ -751,7 +751,7 @@ extern void gfx_set_picasso_modeinfo (uae_u32 w, uae_u32 h, uae_u32 d, RGBFTYPE
extern void gfx_set_picasso_colors (RGBFTYPE rgbfmt); extern void gfx_set_picasso_colors (RGBFTYPE rgbfmt);
extern void gfx_set_picasso_baseaddr (uaecptr); extern void gfx_set_picasso_baseaddr (uaecptr);
extern void gfx_set_picasso_state (int on); extern void gfx_set_picasso_state (int on);
extern uae_u8 *gfx_lock_picasso (void); extern uae_u8 *gfx_lock_picasso (int fullupdate);
extern void gfx_unlock_picasso (void); extern void gfx_unlock_picasso (void);
extern void picasso_clip_mouse (int *, int *); extern void picasso_clip_mouse (int *, int *);
......
...@@ -199,7 +199,6 @@ void fixup_cpu (struct uae_prefs *p) ...@@ -199,7 +199,6 @@ void fixup_cpu (struct uae_prefs *p)
p->mmu_model = 0; p->mmu_model = 0;
} }
void fixup_prefs (struct uae_prefs *p) void fixup_prefs (struct uae_prefs *p)
{ {
int err = 0; int err = 0;
......
This diff is collapsed.
This diff is collapsed.
...@@ -2596,8 +2596,11 @@ static struct zvolume *prepare_recursive_volume (struct zvolume *zv, const TCHAR ...@@ -2596,8 +2596,11 @@ static struct zvolume *prepare_recursive_volume (struct zvolume *zv, const TCHAR
if (!zvnew && !(flags & ZFD_NORECURSE)) { if (!zvnew && !(flags & ZFD_NORECURSE)) {
#if 1 #if 1
/* zvnew = archive_directory_plain (zf); /* zvnew = archive_directory_plain (zf);
if (zvnew) {
zfile_fopen_archive_recurse (zvnew); zfile_fopen_archive_recurse (zvnew);
done = 1;*/ done = 1;
}
*/
#else #else
int rc; int rc;
int index; int index;
...@@ -2626,7 +2629,7 @@ static struct zvolume *prepare_recursive_volume (struct zvolume *zv, const TCHAR ...@@ -2626,7 +2629,7 @@ static struct zvolume *prepare_recursive_volume (struct zvolume *zv, const TCHAR
break; // TODO break; // TODO
} }
#endif #endif
} else { } else if (zvnew) {
zvnew->parent = zv->parent; zvnew->parent = zv->parent;
zfile_fopen_archive_recurse (zvnew); zfile_fopen_archive_recurse (zvnew);
done = 1; done = 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