From 90236850de182c27b3fecb16a102feb686213724 Mon Sep 17 00:00:00 2001 From: ergo720 <45463469+ergo720@users.noreply.github.com> Date: Wed, 27 Sep 2023 20:31:46 +0200 Subject: [PATCH] Updated kernel test to reflect new name --- test/kernel.cpp | 8 ++++---- test/run.cpp | 2 +- test/run.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/kernel.cpp b/test/kernel.cpp index 64892b2..fb1c654 100644 --- a/test/kernel.cpp +++ b/test/kernel.cpp @@ -1,5 +1,5 @@ /* - * lib86cpu cxbxrkrnl app test generator (https://github.com/ergo720/cxbxrkrnl) + * lib86cpu xboxkrnl app test generator (https://github.com/ergo720/xboxkrnl) * Demonstrates running a kernel inside lib86cpu * * ergo720 Copyright (c) 2022 @@ -147,7 +147,7 @@ host_write_handler(addr_t addr, const uint32_t value, void* opaque) { case DBG_STR: // NOTE: get_host_ptr will only work if the string is allocated with a contiguous allocation in physical memory, to avoid - // issues with allocations spanning pages; cxbxrkrnl should guarantee this + // issues with allocations spanning pages; xboxkrnl should guarantee this std::printf("Received a new debug string from kernel:\n%s", get_host_ptr(static_cast(opaque), static_cast(value))); break; @@ -161,7 +161,7 @@ host_write_handler(addr_t addr, const uint32_t value, void* opaque) } bool -gen_cxbxrkrnl_test(const std::string &executable) +gen_xboxkrnl_test(const std::string &executable) { size_t ramsize = 64 * 1024 * 1024; @@ -215,7 +215,7 @@ gen_cxbxrkrnl_test(const std::string &executable) } // Init lib86cpu - if (!LC86_SUCCESS(cpu_new(ramsize, cpu, nullptr, "cxbxrkrnl"))) { + if (!LC86_SUCCESS(cpu_new(ramsize, cpu, nullptr, "xboxkrnl"))) { std::printf("Failed to create cpu!\n"); return false; } diff --git a/test/run.cpp b/test/run.cpp index 24c4bd1..4ef38c2 100644 --- a/test/run.cpp +++ b/test/run.cpp @@ -164,7 +164,7 @@ main(int argc, char **argv) break; case 3: - if (gen_cxbxrkrnl_test(executable) == false) { + if (gen_xboxkrnl_test(executable) == false) { if (cpu) { cpu_free(cpu); } diff --git a/test/run.h b/test/run.h index bfe0a6d..5db7ea3 100644 --- a/test/run.h +++ b/test/run.h @@ -10,5 +10,5 @@ inline cpu_t *cpu = nullptr; bool gen_test386asm_test(const std::string &executable); bool gen_hook_test(); bool gen_dbg_test(); -bool gen_cxbxrkrnl_test(const std::string &executable); +bool gen_xboxkrnl_test(const std::string &executable); void gen_test80186_test(const std::string &path, int syntax, int use_dbg);