rizinorg / rz-tracetest

Testing of RzIL against real traces
8 stars 6 forks source link

Add endianess flag for instruction bytes. #4

Closed Rot127 closed 2 years ago

Rot127 commented 2 years ago

Adds a command line flag. Currently the instruction bytes are interpreted in little endian. The new b flag interprets them in big endian.

Please note that this is the lazy variant to implement it (time is scarce). The much nicer way would be to save this information in the BAP frames/trace header (see: comment in frame_reade.ml).

Rot127 commented 2 years ago

Please do not merge yet. I discovered lines where an endianess check was missing.

Rot127 commented 2 years ago

Turns out this is very likely a bug in qemu https://gitlab.com/qemu-project/qemu/-/issues/356