Skip to content

Instantly share code, notes, and snippets.

@simias
Created September 15, 2015 18:14
Show Gist options
  • Save simias/9535cd9cd3143ec3ee7e to your computer and use it in GitHub Desktop.
Save simias/9535cd9cd3143ec3ee7e to your computer and use it in GitHub Desktop.
/* Invalidate the cache */
jal bios_flush_cache
nop
/* Jump to cache_test, mid cacheline */
jal cache_test
nop
la $t0, cache_test
li $t1, 0x8c000003
sw $t1, 0($t0)
li $t1, 0x7fffffff
and $t0, $t0, $t1
jalr $t0
nop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment