Use the mbits function to avoid ugly manual masking and shifting. Also remove some unnecessary casts when DPRINTF-ing PTEs. Change-Id: I1cf7307760b2534e90bea1276110ecb005ec6471 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/55811 Reviewed-by: Matthew Poremba <matthew.poremba@amd.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>