card map fix.

This commit is contained in:
kodario 2022-11-14 10:53:47 +01:00
parent fbafda69e0
commit 9dd02d5baf
3 changed files with 3 additions and 3 deletions

View File

@ -432,7 +432,7 @@ void tlb_create_map(struct tlb_order *tlb_ord, uint64_t vaddr, uint64_t paddr_ho
key = (vaddr >> tlb_ord->page_shift) & tlb_ord->key_mask;
tag = vaddr >> (tlb_ord->page_shift + tlb_ord->key_size);
phost = (paddr_host >> tlb_ord->page_shift) & tlb_ord->phy_mask;
pcard = ((paddr_card >> tlb_ord->page_shift) & tlb_ord->phy_mask) << tlb_ord->phy_size;
pcard = (paddr_card >> tlb_ord->page_shift) & tlb_ord->phy_mask;
// new entry
entry[0] |= key |

View File

@ -30,7 +30,7 @@ constexpr auto const defPredicate = 100;
constexpr auto const opIdAddMul = 1;
constexpr auto const opIdMinMax = 2;
constexpr auto const opIdRotate = 3;
constexpr auto const opIdSelect = 3;
constexpr auto const opIdSelect = 4;
int main(int argc, char *argv[])
{

View File

@ -41,7 +41,7 @@ constexpr auto const defTargetRegion = 0;
constexpr auto const opIdAddMul = 1;
constexpr auto const opIdMinMax = 2;
constexpr auto const opIdRotate = 3;
constexpr auto const opIdSelect = 3;
constexpr auto const opIdSelect = 4;
/**
* @brief Main