Stream: git-wasmtime

Topic: wasmtime / PR #6079 s390x: Improved TrapIf implementation


view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 16:06):

uweigand opened PR #6079 from s390x-trapif to main:

Following up on the discussion in
https://github.com/bytecodealliance/wasmtime/pull/6011 this adds an improved implementation of TrapIf for s390x using a single conditional branch instruction.

If the trap conditions is true, we branch into the middle of the branch instruction - those middle two bytes are zero, which matches the encoding of the trap instruction.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 16:17):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 16:17):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 16:17):

alexcrichton created PR review comment:

Could this add some assertions that enc has length 6 and the middle 2 bytes are zeros?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 16:17):

alexcrichton created PR review comment:

Like the other backends (which Jamey suggested and I think is a good idea), could this include the trap code in the printing? The other backends do something like # trap={code} at the end IIRC

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 17:08):

uweigand updated PR #6079 from s390x-trapif to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 17:08):

uweigand submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 17:08):

uweigand created PR review comment:

Indeed, good idea. I've also added this for the unconditional traps now.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 23 2023 at 15:24):

alexcrichton merged PR #6079.


Last updated: Oct 23 2024 at 20:03 UTC