FCare / Kronos

Kronos is a Sega Saturn emulator.
http://fcare.github.io
237 stars 23 forks source link

Kronos 2.6.1 become very unstable with the attached test application #1544

Open willll opened 5 months ago

willll commented 5 months ago

This test application starts on real HW, but even though it is not doing much it does not behave as badly as kronos 2.6.1 does :

R0 = 00000071 R12 = 00000000 R1 = 00000000 R13 = 00000000 R2 = 01E00000 R14 = 00000000 R3 = FFFFFF80 R15 = FFEBD251 R4 = 060FFBC0 SR = 000000F1 R5 = 0000000F GBR = 060FFC00 R6 = 00000000 VBR = 06000000 R7 = 00000000 MACH = 00000000 R8 = 00000000 MACL = FFDA2100 R9 = 00000000 PR = 000003FF R10 = 00000000 PC = 00000002 R11 = 00000000 Master SH2 invalid opcode

...

R0 = 0000000E R12 = 060C9A98 R1 = FFFFFE11 R13 = 00000000 R2 = 260FFC48 R14 = 00000000 R3 = 060FFF1B R15 = 05CD5CC0 R4 = 260EEE70 SR = 000003F1 R5 = 060EE668 GBR = 060FFC00 R6 = 060FFEFC VBR = 06000400 R7 = 25C00020 MACH = 00000000 R8 = 00000000 MACL = 00000000 R9 = 00000000 PR = 060116C8 R10 = 060C9894 PC = 00000002 R11 = 060C5000 Slave SH2 invalid opcode

Kronos needs to be kill with : pkill -9 kronos

What's the full name of the game (including region) ?

N\A

What's your frontend ? (standalone, libretro, ...) ?

QT

What's your OS ? (windows, linux, OSX, ...) ?

uname -a Linux will-Inspiron-5759 6.8.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:51:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

What's your hardware ? (CPU, GPU, ...) ?

 *-memory
      description: System memory
      physical id: 0
      size: 16GiB
 *-cpu
      product: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
      vendor: Intel Corp.
      physical id: 1
      bus info: cpu@0
      version: 6.78.3
      size: 2500MHz
      width: 64 bits
    *-display
         description: VGA compatible controller
         product: Skylake GT2 [HD Graphics 520]
         vendor: Intel Corporation

What's the storage type of the game (official cd, burned cd or cd image) ?

ISO file

If applicable, what's the format of your cd image ? (cue/bin, ccd/img, iso, chd, ...)

cue\bin

Are you using any setting different from default ? If so, precise

No

Did this game work previously ? Do you remember when ? Is it happening with other games ?

No

If applicable, provide error messages, logs, screenshots, or whatever additional information that could help debugging this

TestProject.zip

Linker script :

OUTPUT_FORMAT(coff-sh) SECTIONS {

SLSTART 0x06004000 : {
    ___Start = .;
    *(SLSTART)
}

.text ALIGN(0x20) :
{
    * (.text)
    *(.strings)
    *("SEGA_P")

    *(.eh_frame_hdr)
    *(.eh_frame)
    __etext = .;
}

SLPROG ALIGN(0x20): {
    __slprog_start = .;
    *(SLPROG)
    __slprog_end = .;
}

.tors  ALIGN(0x10) :
{
    ___ctors = . ;
    *(.ctors)
    ___ctors_end = . ;
    ___dtors = . ;
    *(.dtors)
    ___dtors_end = . ;
}

.data ALIGN(0x10):
{
    * (.data)
    __edata = . ;
}

.rodata ALIGN(0x20) :
{
    *(.rodata)
}

.bss ALIGN(0x10) (NOLOAD):
{
    __bstart = . ;
    *(.bss)
    * ( COMMON )
    __bend = . ;
    _end = .;
}

HEAP ALIGN(0x10)(NOLOAD):
{
    __heap_start = .;
}

WORK_AREA_DUMMY 0x0000000(NOLOAD):
{
    *(WORK_AREA_DUMMY)
}

work_area_start = 0x060FF000 - SIZEOF(WORK_AREA_DUMMY);

WORK_AREA work_area_start (NOLOAD):
{
    __heap_end = .;
    *(WORK_AREA)
    __work_area_end = .;
}

}