Skip to content

Fix byte enable checking #117

@eyck

Description

@eyck

The sanity checking in In the memory peripheral, the handle_operation performs a sanity check on the byte enable transaction parameter:

if(byt) {
auto res = std::accumulate(byt, byt + trans.get_byte_enable_length(), 0xff, [](uint8_t a, uint8_t b) { return a | b; });
if(trans.get_byte_enable_length() != len || res != 0xff) {
SC_REPORT_ERROR("TLM-2", "generic payload transaction with scattered byte enable not supported");
trans.set_response_status(tlm::TLM_GENERIC_ERROR_RESPONSE);
return 0;
}
}

is wrong.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions