1
0
Fork 0
forked from Miroirs/x49gp

clean unused includes

This commit is contained in:
Gwenhael Le Moine 2024-10-23 14:53:34 +02:00
parent 347d61ced9
commit 32c4902b81
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
13 changed files with 25 additions and 40 deletions

6
dist/x49gpng.man.in vendored
View file

@ -166,6 +166,7 @@ will ask for one through a file selection dialog window like on the first launch
for safety reasons: the firmware may have changed, so the code at the location where for safety reasons: the firmware may have changed, so the code at the location where
.Nm .Nm
was stopped previously could be entirely different from the code at that location afterwards; a reboot ensures an orderly reinitialization of the operating system. was stopped previously could be entirely different from the code at that location afterwards; a reboot ensures an orderly reinitialization of the operating system.
.It Fl F , Fl Fl reflash-full .It Fl F , Fl Fl reflash-full
Same as Same as
.Fl f , .Fl f ,
@ -196,6 +197,7 @@ as the configuration file instead of the default one. See below for details on t
.El .El
.Sh FILES .Sh FILES
.Bl -tag -width indent .Bl -tag -width indent
.It Sy ~/.config/ Ns Nm Ns Sy /config .It Sy ~/.config/ Ns Nm Ns Sy /config
The default location for the configuration file. The file format is the INI-like The default location for the configuration file. The file format is the INI-like
.Dq key-file .Dq key-file
@ -213,12 +215,16 @@ in the sections
which allow changing the filename of the files where the state of the respective memory is held. These can be absolute paths, or paths relative to the location of the configuration file (in the simplest case, only a filename). Any files that do not exist will be created with appropriate size and placeholder content. For which allow changing the filename of the files where the state of the respective memory is held. These can be absolute paths, or paths relative to the location of the configuration file (in the simplest case, only a filename). Any files that do not exist will be created with appropriate size and placeholder content. For
.Em s3c2410-sdi , .Em s3c2410-sdi ,
the empty string is accepted as a special value for no inserted SD card. the empty string is accepted as a special value for no inserted SD card.
.It Sy flash .It Sy flash
The default name of the file backing the flash memory; required size: 2 MiB. If this file does not exist or is too small, the calculator type's appropriate bootloader will be copied into the first 16 KiB. Do NOT simply put a firmware file here, it will not work. Just use the builtin firmware installation mechanism instead. The default name of the file backing the flash memory; required size: 2 MiB. If this file does not exist or is too small, the calculator type's appropriate bootloader will be copied into the first 16 KiB. Do NOT simply put a firmware file here, it will not work. Just use the builtin firmware installation mechanism instead.
.It Sy sram .It Sy sram
The default name of the file backing the SRAM memory; required size: 512 KiB. The default name of the file backing the SRAM memory; required size: 512 KiB.
.It Sy s3c2410-sram .It Sy s3c2410-sram
The default name of the file backing the S3C2410's internal SRAM memory; required size: 4 KiB. The default name of the file backing the S3C2410's internal SRAM memory; required size: 4 KiB.
.El .El
.Sh CAVEATS .Sh CAVEATS
The emulation of the calculators' hardware is not fully accurate. Most notably, emulation speed is not authentic (it depends on the host's capabilites), and communication ports (serial, infrared, USB) are not available. For most purposes this is good enough, though. The emulation of the calculators' hardware is not fully accurate. Most notably, emulation speed is not authentic (it depends on the host's capabilites), and communication ports (serial, infrared, USB) are not available. For most purposes this is good enough, though.

View file

@ -17,7 +17,6 @@
#include "x49gp.h" #include "x49gp.h"
#include "x49gp_ui.h" #include "x49gp_ui.h"
#include "byteorder.h"
#define FLASH_STATE_NORMAL 0 #define FLASH_STATE_NORMAL 0

View file

@ -29,7 +29,6 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include "x49gp.h"
#include "gdbstub.h" #include "gdbstub.h"
#define MAX_PACKET_LENGTH 4096 #define MAX_PACKET_LENGTH 4096

View file

@ -23,7 +23,6 @@
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <ctype.h>
#include <netinet/in.h> #include <netinet/in.h>
int main( int argc, char** argv ) int main( int argc, char** argv )

View file

@ -23,7 +23,6 @@
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <ctype.h>
#include <netinet/in.h> #include <netinet/in.h>
int main( int argc, char** argv ) int main( int argc, char** argv )

View file

@ -2,15 +2,9 @@
*/ */
#include <unistd.h> #include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <time.h>
#include <sys/times.h> #include <sys/times.h>
#include <errno.h>
#include "x49gp.h"
#include "s3c2410.h" #include "s3c2410.h"
/* /*

View file

@ -4,6 +4,8 @@
#ifndef _X49GP_S3C2410_H #ifndef _X49GP_S3C2410_H
#define _X49GP_S3C2410_H 1 #define _X49GP_S3C2410_H 1
#include <stdint.h>
#include "x49gp_types.h" #include "x49gp_types.h"
typedef struct { typedef struct {

View file

@ -10,8 +10,6 @@
#include "x49gp.h" #include "x49gp.h"
#include "s3c2410.h" #include "s3c2410.h"
#include "s3c2410_intc.h" #include "s3c2410_intc.h"
#include "s3c2410_power.h"
#include "byteorder.h"
extern int do_trace; extern int do_trace;

View file

@ -10,7 +10,6 @@
#include "x49gp.h" #include "x49gp.h"
#include "s3c2410.h" #include "s3c2410.h"
#include "s3c2410_intc.h" #include "s3c2410_intc.h"
#include "byteorder.h"
typedef struct { typedef struct {
uint32_t gpacon; uint32_t gpacon;

View file

@ -11,7 +11,6 @@
#include "x49gp.h" #include "x49gp.h"
#include "s3c2410.h" #include "s3c2410.h"
#include "byteorder.h"
typedef struct { typedef struct {
void* data; void* data;

View file

@ -12,9 +12,6 @@
#include <memory.h> #include <memory.h>
#include "x49gp.h" #include "x49gp.h"
#include "byteorder.h"
#include "saturn.h"
typedef struct { typedef struct {
void* data; void* data;
@ -375,25 +372,21 @@ static uint32_t sram_get_word( void* opaque, target_phys_addr_t offset )
data = ldl_p( sram->data + offset ); data = ldl_p( sram->data + offset );
# if 0 # if 0
if (offset == 0x00000a1c) { if (offset == 0x00000a1c)
printf("read SRAM at offset %08x: %08x (pc %08x)\n", offset, data, x49gp->arm->Reg[15]); printf("read SRAM at offset %08x: %08x (pc %08x)\n", offset, data, x49gp->arm->Reg[15]);
}
# endif # endif
# ifdef DEBUG_X49GP_SYSRAM_READ # ifdef DEBUG_X49GP_SYSRAM_READ
if ( ( offset & ~( 0x0001ffff ) ) == 0x00000000 ) { if ( ( offset & ~( 0x0001ffff ) ) == 0x00000000 )
printf( "read SRAM 4 at offset %08x: %08x\n", offset, data ); printf( "read SRAM 4 at offset %08x: %08x\n", offset, data );
}
# endif # endif
# ifdef DEBUG_X49GP_ERAM_READ # ifdef DEBUG_X49GP_ERAM_READ
if ( ( offset & ~( 0x0001ffff ) ) == 0x00020000 ) { if ( ( offset & ~( 0x0001ffff ) ) == 0x00020000 )
printf( "read SRAM 4 at offset %08x: %08x\n", offset, data ); printf( "read SRAM 4 at offset %08x: %08x\n", offset, data );
}
# endif # endif
# ifdef DEBUG_X49GP_IRAM_READ # ifdef DEBUG_X49GP_IRAM_READ
if ( ( offset & ~( 0x0003ffff ) ) == 0x00040000 ) { if ( ( offset & ~( 0x0003ffff ) ) == 0x00040000 )
printf( "read SRAM 4 at offset %08x: %08x\n", offset, data ); printf( "read SRAM 4 at offset %08x: %08x\n", offset, data );
}
# endif # endif
return data; return data;
@ -462,18 +455,18 @@ static void sram_put_word( void* opaque, target_phys_addr_t offset, uint32_t dat
debug_saturn( sram->x49gp, sram ); debug_saturn( sram->x49gp, sram );
# if 0 # if 0
if (offset == 0x3340 + SATURN(D1)) { if (offset == 0x3340 + SATURN(D1)) {
printf("write D1 at offset %08x: %08x (pc %08x)\n", printf("write D1 at offset %08x: %08x (pc %08x)\n",
offset, data, sram->x49gp->env->regs[15]); offset, data, sram->x49gp->env->regs[15]);
} }
if (offset == 0x3340 + SATURN(A)) { if (offset == 0x3340 + SATURN(A)) {
printf("write A at offset %08x: %08x (pc %08x)\n", printf("write A at offset %08x: %08x (pc %08x)\n",
offset, data, sram->x49gp->env->regs[15]); offset, data, sram->x49gp->env->regs[15]);
} }
if (offset == 0x3340 + SATURN(A) + 8) { if (offset == 0x3340 + SATURN(A) + 8) {
printf("write Al at offset %08x: %08x (pc %08x)\n", printf("write Al at offset %08x: %08x (pc %08x)\n",
offset, data, sram->x49gp->env->regs[15]); offset, data, sram->x49gp->env->regs[15]);
} }
# endif # endif
# ifdef DEBUG_X49GP_SYSRAM_WRITE # ifdef DEBUG_X49GP_SYSRAM_WRITE

View file

@ -11,7 +11,6 @@
#include <time.h> #include <time.h>
#include <sys/time.h> #include <sys/time.h>
#include <signal.h> #include <signal.h>
#include <errno.h>
#include <poll.h> #include <poll.h>
#include <glib.h> #include <glib.h>

View file

@ -8,7 +8,6 @@
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <signal.h>
#include <sys/times.h> #include <sys/times.h>
#include <math.h> #include <math.h>
#include <errno.h> #include <errno.h>