The effect is the same, the rules for overloads are easier to work with than the rules for templates, and it removes the assumption that swap_bytes actually is a template. Also some minor style fixes. Change-Id: Id9439177185b5269dd89605bbd05b09390a18d40 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45285 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>