attribute tweak

This commit is contained in:
folkert van heusden 2024-04-23 16:14:18 +02:00
parent 8173fa792a
commit 4d9077df2d
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -626,8 +626,7 @@ uint32_t bus::calculate_physical_address(const int run_mode, const uint16_t a, c
uint32_t io_base = get_io_base(); uint32_t io_base = get_io_base();
bool is_io = m_offset >= io_base; bool is_io = m_offset >= io_base;
[[unlikely]] if (trap_on_failure) [[unlikely]] {
if (trap_on_failure) {
{ {
auto rc = get_trap_action(run_mode, d, apf, is_write); auto rc = get_trap_action(run_mode, d, apf, is_write);
auto trap_action = rc.first; auto trap_action = rc.first;
@ -674,8 +673,7 @@ uint32_t bus::calculate_physical_address(const int run_mode, const uint16_t a, c
} }
} }
[[unlikely]] if (m_offset >= n_pages * 8192l && !is_io) [[unlikely]] {
if (m_offset >= n_pages * 8192l && !is_io) {
DOLOG(debug, !peek_only, "bus::calculate_physical_address %o >= %o", m_offset, n_pages * 8192l); DOLOG(debug, !peek_only, "bus::calculate_physical_address %o >= %o", m_offset, n_pages * 8192l);
DOLOG(debug, false, "TRAP(04) (throw 6) on address %06o", a); DOLOG(debug, false, "TRAP(04) (throw 6) on address %06o", a);