Bug 1371317: ARM simulator: don't assert when triggering a second interrupt; r=luke

MozReview-Commit-ID: CqmCkNFk93t

--HG--
extra : rebase_source : f6aada78431b547d8d7392d8b0adf70b493b423a
extra : histedit_source : 7f0b27e2a5621bc126a741157668d638ed8aac47
This commit is contained in:
Benjamin Bouvier 2017-06-08 18:12:39 +02:00
Родитель ed9030a41a
Коммит 1e1d66cfc9
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -193,7 +193,9 @@ class Simulator
T get_pc_as() const { return reinterpret_cast<T>(get_pc()); }
void trigger_wasm_interrupt() {
MOZ_ASSERT(!wasm_interrupt_);
// This can be called several times if a single interrupt isn't caught
// and handled by the simulator, but this is fine; once the current
// instruction is done executing, the interrupt will be handled anyhow.
wasm_interrupt_ = true;
}