« Previous | Next » 

Revision 5b185639


Added by Alexander Graf about 10 years ago

s390x: fix cksm instruction

The cksm instruction was implemented incorrectly, rendering UDP and TCP
checksum calculation wrong, making an emulated s390x Linux guest break
in most networking operations.

This patch fixes odd end checksum calculation, takes the input register
as input for the checksum and optimizes the overflow pieces by a bit.

Signed-off-by: Alexander Graf <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences