card map fix.
This commit is contained in:
parent
fbafda69e0
commit
9dd02d5baf
|
@ -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 |
|
||||
|
|
|
@ -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[])
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue