From 8deeb216cbff4e578284fc040d8f0b51e96d4b04 Mon Sep 17 00:00:00 2001 From: spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> Date: Wed, 29 Jun 2022 13:09:57 +0200 Subject: Add -g to default flags, update changelog and known bugs --- .github/scripts/generate_release_notes.py | 76 ++++++++++++++++++------------- CHANGELOG.md | 51 +++++++++++++++------ doc/known_bugs.md | 23 +++++++--- libpsn00b/cmake/flags.cmake | 3 ++ 4 files changed, 103 insertions(+), 50 deletions(-) diff --git a/.github/scripts/generate_release_notes.py b/.github/scripts/generate_release_notes.py index e3fbc7f..c706191 100644 --- a/.github/scripts/generate_release_notes.py +++ b/.github/scripts/generate_release_notes.py @@ -8,7 +8,8 @@ from argparse import ArgumentParser, FileType ## Helpers -VERSION_REGEX = re.compile(r"^(?:refs\/tags\/)?(?:v|ver|version|release)? *(.*)") +VERSION_REGEX = re.compile(r"^(?:refs\/tags\/)?(?:v|ver|version|release)? *(.*)") +TEXT_WRAP_REGEX = re.compile(r"(? args.to_date: - continue if version not in versions: versions[version] = [], [] _authors, _changes = versions[version] - _authors.extend(authors.keys()) - _changes.extend(authors.values()) + + for date, authors in blocks: + if date < args.from_date or date > args.to_date: + continue + + _authors.extend(authors.keys()) + _changes.extend(authors.values()) notes = generate_notes(versions) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2e6d1c..2f4bbfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,37 +19,63 @@ to ensure the changelog can be parsed correctly. ------------------------------------------------------------------------------- -## 2022-03-30: +## 2022-06-26 + +spicyjpeg: + +- psxgpu: Rewritten the entire library in C, fixing a few bugs (including one + that made 384x240 and 384x256 modes unusable) and adding a drawing queue in + the process. `DrawOTag()` can now be called while another OT is being drawn + to enqueue up to 8 other OTs. + +- psxgpu: Added missing `setXYWH()` macro and implemented `ClearOTag()`, + `DrawOTag2()`, `DrawOTagEnv()` and `GsGetTimInfo()`. + +- libpsn00b: Renamed `_start()` to `_start_inner()` and added a `_start()` stub + that can be overridden to insert custom startup code. Modified the linker + scripts to assume RAM is 8 MB by default, to make it easier to target arcade + or development hardware. + +- examples: Fixed some functions in `io/system573`. + +- tools: `elf2x` now warns if the converted executable crosses the 2 MB RAM + boundary. + +- Debugging symbols in ELF files are now generated by default for all target + types. This does not affect the size of built executables or DLLs, as those + are always stripped. + +## 2022-03-30 lameguy64: -- indev: psxmdec prototype is now functional through psxpress. +- indev: psxmdec prototype is now functional through `psxpress`. ## 2022-03-25: 0.19 lameguy64: -- examples: Replaced sample image of mdec/mdecimage with different artwork. - Original image: http://lameguy64.net/?page=drawings&post_id=9 +- examples: Replaced sample image of `mdec/mdecimage` with different artwork. + Original image [here](http://lameguy64.net/?page=drawings&post_id=9). - examples: Updated readme file in examples directory to reference the new - mdecimage example program. + `mdec/mdecimage` example program. - psxsio: Added dummy hooks to unsupported device functions for tty device. -- docs: Minor corrections on dev_notes.md. +- docs: Minor corrections on `dev_notes.md`. -- docs: Updated documentation for CdGetSector() and CdReadCallback() - functions in libn00bref.odt. +- docs: Updated documentation for `CdGetSector()` and `CdReadCallback()` + functions in `libn00bref.odt`. -## 2022-02-27: +## 2022-02-27 spicyjpeg: - libpsn00b: Added `hwregs_c.h` header and renamed some registers in `hwregs_a.h`. Added `assert()` as a proper macro. -- libpsn00b: Added new MDEC library; psxpress. +- libpsn00b: Added new MDEC library; `psxpress`. - psxspu: Fixed critical bug in `SpuSetReverb()`. @@ -82,9 +108,8 @@ spicyjpeg: Lameguy64: -- docs: Removed old and incomplete `libn00bref.odt` document (a percussor of - the LibPSn00b Library Reference document) as it got included into a commit by - accident at some point. +- docs: Removed old and incomplete `libn00bref.odt` document (a precursor of + the LibPSn00b Library Reference document). - examples: Improved description of `hdtv` example. Examples directory is now copied into `share/psn00bsdk` directory for both installation and package diff --git a/doc/known_bugs.md b/doc/known_bugs.md index e39da43..9e83f03 100644 --- a/doc/known_bugs.md +++ b/doc/known_bugs.md @@ -1,8 +1,9 @@ # Known PSn00bSDK bugs -This is an incomplete list of things that are currently broken (or not behaving -as they should, or untested on real hardware) and haven't yet been fixed. +This is an incomplete list of things that are known to be currently broken (or +not behaving as they should, or untested on real hardware) and haven't yet been +fixed. ## Toolchain @@ -15,18 +16,28 @@ as they should, or untested on real hardware) and haven't yet been fixed. them. It might be necessary to list such symbols in a dummy array to prevent the compiler from stripping them away from the executable. +- Link-time optimization is broken due to GCC not supporting it when linking + weak functions written in assembly. + ## Libraries `psxgpu`: -- In some *very rare* cases, `VSync()` seems to crash the system by performing - unaligned accesses for unknown reasons. +- `LoadImage()` and `StoreImage()` use DMA to transfer data to/from the GPU. + As the DMA channel is configured to transfer 8 words (32 bytes) at a time, + the length of the data *must* be a multiple of 32 bytes. Attempting to + transfer any data whose length isn't a multiple of 32 bytes will result in + `DrawSync()` hanging and never returning, however a warning will be printed + on the debug console. `psxspu`: +- `SpuCtrlSync()` locks up on MAME, making any code that tries to initialize + the SPU hang. It works on other emulators as well as on real hardware. + - Calls to `SpuSetTransferMode()` are ignored. SPU transfers are always performed using DMA, which imposes limitations such as the data length having - to be a multiple of 64 bytes. + to be a multiple of 16 words (64 bytes, see above). `psxetc`: @@ -40,4 +51,4 @@ as they should, or untested on real hardware) and haven't yet been fixed. See [README.md in the examples directory](../examples/README.md#examples-summary). ----------------------------------------- -_Last updated on 2022-02-03 by spicyjpeg_ +_Last updated on 2022-06-29 by spicyjpeg_ diff --git a/libpsn00b/cmake/flags.cmake b/libpsn00b/cmake/flags.cmake index e31773f..5d9c751 100644 --- a/libpsn00b/cmake/flags.cmake +++ b/libpsn00b/cmake/flags.cmake @@ -42,6 +42,8 @@ target_compile_options( -march=r3000 -mtune=r3000 -mabi=32 + -mno-mt + -mno-llsc -mdivide-breaks -O2 # Standard library options @@ -49,6 +51,7 @@ target_compile_options( -fno-builtin -nostdlib # Other options + -g -fdata-sections -ffunction-sections -fsigned-char -- cgit v1.2.3