forked from Miroirs/x49gp
clean unused includes
This commit is contained in:
parent
347d61ced9
commit
32c4902b81
13 changed files with 25 additions and 40 deletions
6
dist/x49gpng.man.in
vendored
6
dist/x49gpng.man.in
vendored
|
@ -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
|
||||
.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.
|
||||
|
||||
.It Fl F , Fl Fl reflash-full
|
||||
Same as
|
||||
.Fl f ,
|
||||
|
@ -196,6 +197,7 @@ as the configuration file instead of the default one. See below for details on t
|
|||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width indent
|
||||
|
||||
.It Sy ~/.config/ Ns Nm Ns Sy /config
|
||||
The default location for the configuration file. The file format is the INI-like
|
||||
.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
|
||||
.Em s3c2410-sdi ,
|
||||
the empty string is accepted as a special value for no inserted SD card.
|
||||
|
||||
.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.
|
||||
|
||||
.It Sy sram
|
||||
The default name of the file backing the SRAM memory; required size: 512 KiB.
|
||||
|
||||
.It Sy s3c2410-sram
|
||||
The default name of the file backing the S3C2410's internal SRAM memory; required size: 4 KiB.
|
||||
|
||||
.El
|
||||
.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.
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#include "x49gp.h"
|
||||
#include "x49gp_ui.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
#define FLASH_STATE_NORMAL 0
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
#include "x49gp.h"
|
||||
#include "gdbstub.h"
|
||||
|
||||
#define MAX_PACKET_LENGTH 4096
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
int main( int argc, char** argv )
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
int main( int argc, char** argv )
|
||||
|
|
|
@ -2,15 +2,9 @@
|
|||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
#include <sys/times.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
#ifndef _X49GP_S3C2410_H
|
||||
#define _X49GP_S3C2410_H 1
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "x49gp_types.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
#include "s3c2410_power.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
extern int do_trace;
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
typedef struct {
|
||||
uint32_t gpacon;
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
typedef struct {
|
||||
void* data;
|
||||
|
|
15
src/sram.c
15
src/sram.c
|
@ -12,9 +12,6 @@
|
|||
#include <memory.h>
|
||||
|
||||
#include "x49gp.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
#include "saturn.h"
|
||||
|
||||
typedef struct {
|
||||
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 );
|
||||
|
||||
# if 0
|
||||
if (offset == 0x00000a1c) {
|
||||
if (offset == 0x00000a1c)
|
||||
printf("read SRAM at offset %08x: %08x (pc %08x)\n", offset, data, x49gp->arm->Reg[15]);
|
||||
}
|
||||
# endif
|
||||
|
||||
# ifdef DEBUG_X49GP_SYSRAM_READ
|
||||
if ( ( offset & ~( 0x0001ffff ) ) == 0x00000000 ) {
|
||||
if ( ( offset & ~( 0x0001ffff ) ) == 0x00000000 )
|
||||
printf( "read SRAM 4 at offset %08x: %08x\n", offset, data );
|
||||
}
|
||||
# endif
|
||||
# ifdef DEBUG_X49GP_ERAM_READ
|
||||
if ( ( offset & ~( 0x0001ffff ) ) == 0x00020000 ) {
|
||||
if ( ( offset & ~( 0x0001ffff ) ) == 0x00020000 )
|
||||
printf( "read SRAM 4 at offset %08x: %08x\n", offset, data );
|
||||
}
|
||||
# endif
|
||||
# ifdef DEBUG_X49GP_IRAM_READ
|
||||
if ( ( offset & ~( 0x0003ffff ) ) == 0x00040000 ) {
|
||||
if ( ( offset & ~( 0x0003ffff ) ) == 0x00040000 )
|
||||
printf( "read SRAM 4 at offset %08x: %08x\n", offset, data );
|
||||
}
|
||||
# endif
|
||||
|
||||
return data;
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
|
1
src/ui.c
1
src/ui.c
|
@ -8,7 +8,6 @@
|
|||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <sys/times.h>
|
||||
#include <math.h>
|
||||
#include <errno.h>
|
||||
|
|
Loading…
Reference in a new issue