mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 11:44:28 +03:00
LimEx NFA: unify flush br/estate behaviour
Make the GPR NFA models only clear cached_estate conditionally based on cached_br, as per the SIMD models.
This commit is contained in:
committed by
Matthew Barr
parent
b5e290e985
commit
4311775b43
@@ -120,8 +120,10 @@ int processExceptional32(u32 s, u32 estate, UNUSED u32 diffmask, u32 *succ,
|
|||||||
ctx->cached_reports = new_cache.reports;
|
ctx->cached_reports = new_cache.reports;
|
||||||
ctx->cached_br = new_cache.br;
|
ctx->cached_br = new_cache.br;
|
||||||
} else if (cacheable == DO_NOT_CACHE_RESULT_AND_FLUSH_BR_ENTRIES) {
|
} else if (cacheable == DO_NOT_CACHE_RESULT_AND_FLUSH_BR_ENTRIES) {
|
||||||
|
if (ctx->cached_br) {
|
||||||
ctx->cached_estate = 0U;
|
ctx->cached_estate = 0U;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user