Skip to content

Commit

Permalink
refactor: move DTB before RAM and increase its size to 1MB
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Jul 27, 2023
1 parent 7113e5f commit f928cd0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/machine-emulator-defines
4 changes: 2 additions & 2 deletions src/test-machine-c-api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1496,11 +1496,11 @@ BOOST_FIXTURE_TEST_CASE_NOLINT(get_initial_config_flash_drive_test, flash_drive_
BOOST_FIXTURE_TEST_CASE_NOLINT(dump_pmas_null_placeholder_test, flash_drive_machine_fixture) {
std::array dump_list{
"0000000000000000--0000000000001000.bin", // shadow state
"0000000000001000--000000000000f000.bin", // dtb
"0000000000010000--0000000000001000.bin", // shadow pmas
"0000000000020000--0000000000006000.bin", // shadow tlb
"0000000002000000--00000000000c0000.bin", // clint
"0000000040008000--0000000000001000.bin", // htif
"000000007ff00000--0000000000100000.bin", // dtb
"0000000080000000--0000000000100000.bin", // ram
"0080000000000000--0000000003c00000.bin" // flash drive
};
Expand All @@ -1517,11 +1517,11 @@ BOOST_FIXTURE_TEST_CASE_NOLINT(dump_pmas_null_placeholder_test, flash_drive_mach
BOOST_FIXTURE_TEST_CASE_NOLINT(dump_pmas_basic_test, flash_drive_machine_fixture) {
std::array dump_list{
"0000000000000000--0000000000001000.bin", // shadow state
"0000000000001000--000000000000f000.bin", // dtb
"0000000000010000--0000000000001000.bin", // shadow pmas
"0000000000020000--0000000000006000.bin", // shadow tlb
"0000000002000000--00000000000c0000.bin", // clint
"0000000040008000--0000000000001000.bin", // htif
"000000007ff00000--0000000000100000.bin", // dtb
"0000000080000000--0000000000100000.bin", // ram
"0080000000000000--0000000003c00000.bin" // flash drive
};
Expand Down
6 changes: 3 additions & 3 deletions src/tests/machine-bind.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ end

local pmas_file_names = {
"0000000000000000--0000000000001000.bin", -- shadow state
"0000000000001000--000000000000f000.bin", -- dtb
"0000000000010000--0000000000001000.bin", -- shadow pmas
"0000000000020000--0000000000006000.bin", -- shadow tlb
"0000000002000000--00000000000c0000.bin", -- clint
"0000000040008000--0000000000001000.bin", -- htif
"0000000080000000--0000000000100000.bin", -- ram
"0000000070000000--0000000000010000.bin", -- uarch ram
"000000007ff00000--0000000000100000.bin", -- dtb
"0000000080000000--0000000000100000.bin", -- ram
}
local pmas_sizes = { 4096, 61440, 4096, 24576, 786432, 4096, 1048576, 65536, 65536 }
local pmas_sizes = { 0x1000, 0x1000, 0x6000, 0xc0000, 0x1000, 0x10000, 0x100000, 0x100000 }

local remote
local function build_machine(type)
Expand Down
4 changes: 2 additions & 2 deletions src/tests/machine-test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,21 @@ end

local pmas_file_names = {
"0000000000000000--0000000000001000.bin", -- shadow state
"0000000000001000--000000000000f000.bin", -- dtb
"0000000000010000--0000000000001000.bin", -- shadow pmas
"0000000000020000--0000000000006000.bin", -- shadow tlb
"0000000002000000--00000000000c0000.bin", -- clint
"0000000040008000--0000000000001000.bin", -- htif
"0000000080000000--0000000000100000.bin", -- ram
"000000007ff00000--0000000000100000.bin", -- dtb
}

local pmas_file_names_with_uarch = {
"0000000000000000--0000000000001000.bin", -- shadow state
"0000000000001000--000000000000f000.bin", -- dtb
"0000000000010000--0000000000001000.bin", -- shadow pmas
"0000000000020000--0000000000006000.bin", -- shadow tlb
"0000000002000000--00000000000c0000.bin", -- clint
"0000000040008000--0000000000001000.bin", -- htif
"000000007ff00000--0000000000100000.bin", -- dtb
"0000000080000000--0000000000100000.bin", -- ram
"0000000070000000--0000000000100000.bin", -- uarch ram
}
Expand Down

0 comments on commit f928cd0

Please sign in to comment.