Commit graph

368 commits

Author SHA1 Message Date
Kirill Zhumarin
48b078bfbe Fixes
Some checks failed
build / build (ubuntu-latest) (push) Failing after 3m4s
build / build (macos-latest) (push) Has been cancelled
build / build (windows-latest) (push) Has been cancelled
2026-10-30 23:09:33 +03:00
Kirill Zhumarin
e563358d52 Add Siemens Teak boot stream tools 2026-09-25 00:04:29 +03:00
Kirill Zhumarin
3f770d5a80 Fix TeakLite assembler and disassembler encodings 2026-09-24 23:41:15 +03:00
Kirill Zhumarin
517e830332 teaklite: optimize firmware execution 2026-07-29 20:32:31 +03:00
Kirill Zhumarin
90c195abd9 teaklite: add thread-safe host integration 2026-07-29 08:34:46 +03:00
Kirill Zhumarin
21c80e6628 teaklite: support PMB887x DSP emulation 2026-07-29 05:33:38 +03:00
Kirill Zhumarin
160fe71354 pmb8876: add DSP emulation PoC 2026-07-29 01:19:33 +03:00
Andrea Pappacoda
3d697a18df
ci: enable test assets and cache them (#64)
* ci: pass --build-config to ctest

It's required when using multi-config generators like MSVC on Windows

* Do not download git-lfs files by default

The test file is really big, and downloading it by default may create
issues with users on a slow network.

Use a .lfsconfig file to disable LFS downloads. This way, LFS files can
be explicitly downloaded via

    git lfs pull --exclude='' --include='*'

* build: use Git LFS test data

* ci: enable test assets and cache them

* ci: limit runs to the master branch

This avoids duplicated runs on merge requests
2025-08-24 16:34:20 -04:00
wheremyfoodat
dda8ec0a79
Allow Teakra to either own DSP memory or have the user provide their own (#66)
* Move ownership of DSP memory to user

Co-Authored-By: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com>

* Allow SharedMemory to be owned by either the user or Teakra, fix tests

* Fix C bindings

* Address comments

---------

Co-authored-by: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com>
2025-08-21 14:17:27 -04:00
Weiyi Wang
3247d54d55
Merge pull request #67 from Panda3DS-emu/ci-on-pr
Run CI on pull requests and allow dispatching CI workflows manually
2025-08-21 13:36:17 -04:00
wheremyfoodat
5adc1e41f9
Allow manually triggering CI 2025-08-21 20:23:59 +03:00
wheremyfoodat
0cc3f604c8
Make CI run on pull request 2025-08-21 20:22:59 +03:00
Weiyi Wang
6f20ca2430
Merge pull request #65 from Panda3DS-emu/iwyu
IWYU: Add stddef.h to disassembler C bindings
2025-08-14 16:04:42 -04:00
wheremyfoodat
fc5e97e61e
IWYU: Add stddef.h to disassembler C bindings 2025-08-14 22:50:40 +03:00
Weiyi Wang
a0364b6319 move the test file to correct place 2025-08-07 22:11:37 -04:00
Weiyi Wang
8a5338e3e2 Add test result 2025-08-07 21:58:26 -04:00
Weiyi Wang
8d10cc95d3 changes that I forgot to commit 2025-08-07 21:44:28 -04:00
Weiyi Wang
705c0b342b
Merge pull request #63 from Tachi107/github-ci
Add GitHub CI, remove broken Travis one
2025-08-06 10:34:58 -04:00
Andrea Pappacoda
64f3101611
build: only pass -Wno-error=maybe-uninitialized to GCC
It's not supported by Clang
2025-08-06 16:22:31 +02:00
Andrea Pappacoda
6780a85296
Add GitHub CI, remove broken Travis one 2025-08-06 16:16:39 +02:00
Weiyi Wang
a66efb9cd9
Merge pull request #62 from Panda3DS-emu/tests
Tests: Add impl folder to include directories
2025-08-05 15:59:24 -04:00
wheremyfoodat
5235b0f1a1 Tests: Add impl folder to include directories 2025-08-05 22:23:51 +03:00
Weiyi Wang
e34a86799e
Merge pull request #60 from Panda3DS-emu/expose-regs-2
Processor: Expose register struct in C++ interface
2025-07-07 22:43:52 -04:00
wheremyfoodat
b795d0da5b Processor: Expose register struct in C++ interface 2025-07-07 14:06:18 +03:00
Weiyi Wang
4dfebf8cf3
Merge pull request #58 from Tachi107/cmake-fixup
Fixup CMake Config namespace
2025-01-17 18:41:42 -05:00
Andrea Pappacoda
a2995ad883
Fixup CMake Config namespace
Forgot the "::". Sorry!
2025-01-17 12:47:42 +01:00
Weiyi Wang
39acce8cf4
Merge pull request #57 from Tachi107/cmake-improvements
Small CMake improvements
2025-01-16 18:42:48 -05:00
Andrea Pappacoda
495cc28545
Support BUILD_TESTING CMake option
The `BUILD_TESTING` option is the standard CMake option used to disable
tests.

With this patch, tests will only be built when `BUILD_TESTING` isn't
`OFF`.

In other words, defining `BUILD_TESTING=OFF` will disable tests,
regardless of the value of `MASTER_PROJECT` and
`TEAKRA_BUILD_UNIT_TESTS`. It ovverides them.

When the user does not explicitly define `BUILD_TESTING=OFF`, the build
will behave as before.

The `BUILD_TESTING` option is defined by the built-in `CTest` module.
Including the module also automatically calls `enable_testing()`, so
calling it explicitly isn't required anymore.

Honouring this option is especially nice for downstream distributions
like Debian, as our build systems automatically define
`BUILD_TESTING=OFF` when appropriate.
2025-01-16 15:03:05 +01:00
Andrea Pappacoda
4534842b67
Add install target to CMake
This allows system-wide installation, useful for distribution packagers.

The minimum required CMake version is bumped to 3.14, as the `TYPE`
argument of `install(DIRECTORY)` requires it. This also has the benefit
of fixing the CMake 3.10 deprecation warning.
2025-01-16 15:03:05 +01:00
Weiyi Wang
6a173f5355
Merge pull request #56 from Tachi107/no-ignored-attributes
Fix build failing with -Werror=no-ignored-attributes
2025-01-15 20:40:31 -05:00
Andrea Pappacoda
b3806e83c0
Fix build failing with -Werror=no-ignored-attributes
Recent versions of GCC started throwing a no-ignored-attributes warning
for code using `std::unique_ptr<std::FILE, decltype(std::fclose)>`,
since some attribute set on fclose gets discarded.

To fix the issue, I've added a simple fclose_deleter callable which
calls fclose. It also simplifies code as it is no longer needed to pass
`std::fclose` as an argument when constructing the unique_ptr. Also,
according to <https://stackoverflow.com/a/76867913/10767647>, this is
"better practice".
2025-01-15 21:20:44 +01:00
Weiyi Wang
01db7cdd00
Merge pull request #54 from runlevel5/patch-3
Bump catch to 2.13.8
2022-02-23 20:04:10 -05:00
Weiyi Wang
cf8886d519
Merge pull request #53 from runlevel5/patch-2
Disable -Werror=maybe-uninitialized
2022-02-23 20:02:48 -05:00
Trung Lê
008f8a4449
Bump catch to 2.13.8
Which includes the fix for https://github.com/catchorg/Catch2/issues/2178

Fixes #51
2022-02-24 11:17:58 +11:00
Weiyi Wang
ac41609607
Merge pull request #52 from runlevel5/patch-1
Add utility lib to fix missing std::exchange error
2022-02-23 19:10:48 -05:00
Trung Lê
47e79f3454
Disable -Werror=maybe-uninitialized 2022-02-24 10:48:04 +11:00
Trung Lê
55355e1e7c
Add utility lib to fix missing std::exchange error 2022-02-24 10:42:35 +11:00
Weiyi Wang
d4bea3ec3a
Merge pull request #48 from PoroCYon/expose-ahbm
Expose AHBM things and add 16- and 32-bit memory accesses
2020-09-13 12:20:24 -04:00
PoroCYon
8cb6d0aeca Also need these
Even though the code that uses the Teakra API can call the AHBM memory
access callbacks itself directly, AHBM also does some weird stuff on
misaligned accesses, for which these functions are probably useful.
2020-09-13 17:51:01 +02:00
PoroCYon
78d0685696 Add 16- and 32-bit read/write interface to AHBM 2020-09-13 17:51:01 +02:00
PoroCYon
054aedb0cc expose some AHBM registers through the API 2020-09-13 17:50:59 +02:00
Weiyi Wang
9f222e432e
Merge pull request #46 from PoroCYon/master
Expose program, data and mmio read/write operations, for DSP_PDATA/PADR-based DMA-style transfers
2020-09-13 11:25:43 -04:00
PoroCYon
f8a5dc257a expose program, data and mmio read/write operations, for DSP_PDATA/PADR-based DMA-style transfers 2020-09-09 03:40:18 +02:00
Weiyi Wang
62201e6878
Update dma.md
Remove outdated information.
2020-09-08 20:29:44 -04:00
Weiyi Wang
492660050a
Merge pull request #44 from PoroCYon/master
Add C API for the disassembler
2020-09-07 21:30:51 -04:00
Weiyi Wang
ecdc8ea5b9
Merge pull request #43 from PoroCYon/patches
expose PeekRecvData for DSP_REPx peeking
2020-09-07 21:30:06 -04:00
PoroCYon
978a3cfd90 expose PeekRecvData for DSP_REPx peeking 2020-09-08 03:20:12 +02:00
PoroCYon
a4684ac9db add C api for the disassembler 2020-06-18 18:36:38 +02:00
PoroCYon
5b9019e9a6 fix extern C stuff in header files 2020-06-18 18:36:38 +02:00
Weiyi Wang
3e032a73d7
Merge pull request #41 from wwylele/btdmp-timer
Stub btdmp timer to 4096. The previous guess was wrong
2020-06-07 19:53:21 -04:00