Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !5454

i#4842 drcachesim unit test: Add cache_fifo unit test

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Nahome Bete requested to merge i4842-cache_fifo_unit_test into master Apr 08, 2022
  • Overview 66
  • Commits 18
  • Pipelines 0
  • Changes 7

Adds unit tests for FIFO cache simulator

Adds a method get_next_way_to_replace() that just returns the victim 'way' without a side effect on the cache state. This makes unit testing the cache replacement policies convenient and avoids unexpected behavior.

Adds cache_policy_test_t template for testing multiple cache replacement policies.

Adds get_block_index() method that returns the block index for a given addr_t address.

Issue: #4842, #5456 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i4842-cache_fifo_unit_test