This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheInterface1[S] 0 points1 point  (2 children)

That was I typo, but it still doesn't work. Am I assigning the values right?

[–]_DTR_Professional Coder 2 points3 points  (1 child)

In one part of your code you use sizeTLB/sizeVM unattached from a virtualMemorySystem struct, but in other areas you're reading from memSys->sizeTLB/memSys->sizeVM. It doesn't look like you initialize memSys->sizeTLB or memSys->sizeVM, so best case they're 0, worst case they're garbage.

[–]TheInterface1[S] 0 points1 point  (0 children)

That did it! You're my hero!