intel/tools/aubwrite: Always use physical addresses for traces.
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 21 Aug 2018 16:49:03 +0000 (09:49 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Wed, 22 Aug 2018 19:52:41 +0000 (12:52 -0700)
commitf8cfc7766016d0ff7d52953e7a992b1e77c521d0
tree9d8f320d5a94cca4d641e950cb3a69a20712ceb1
parente82d8fa9641abcad9f441a8c70ad773f4fc6baa6
intel/tools/aubwrite: Always use physical addresses for traces.

It looks like we can't rely on the simulator to always translate virtual
addresses to physical ones correctly. So let's use physical everywhere.

Since our current GGTT maps virtual to physical addresses in a 1:1 way,
no further changes are required.

Additionally, we have other address spaces not in use right now. So
let's make it easier to switch which one we are using but putting the
default one into the aub_file struct.

Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aub_write.c
src/intel/tools/aub_write.h