This commit is contained in:
Jesper Wilhelmsson 2016-02-11 21:07:38 +01:00
commit c6d81e192d
117 changed files with 1100 additions and 464 deletions

View file

@ -322,9 +322,12 @@ address ExceptionCache::test_address(address addr) {
bool ExceptionCache::add_address_and_handler(address addr, address handler) {
if (test_address(addr) == handler) return true;
if (count() < cache_size) {
set_pc_at(count(),addr);
set_handler_at(count(), handler);
int index = count();
if (index < cache_size) {
set_pc_at(index, addr);
set_handler_at(index, handler);
OrderAccess::storestore();
increment_count();
return true;
}