[PowerPC] Fix PMCLOG address width
PMCLOG macros were always using 32-bit addresses, even on PPC64. This resulted in truncated addresses in logs, when running on 64-bit PPC machines. Sponsored by: Eldorado Research Institute (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D26112
This commit is contained in:
parent
9b23e3845b
commit
51488825f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365033
@ -14,8 +14,13 @@ union pmc_md_op_pmcallocate {
|
||||
};
|
||||
|
||||
/* Logging */
|
||||
#ifdef __powerpc64__
|
||||
#define PMCLOG_READADDR PMCLOG_READ64
|
||||
#define PMCLOG_EMITADDR PMCLOG_EMIT64
|
||||
#else
|
||||
#define PMCLOG_READADDR PMCLOG_READ32
|
||||
#define PMCLOG_EMITADDR PMCLOG_EMIT32
|
||||
#endif
|
||||
|
||||
#define mtpmr(reg, val) \
|
||||
__asm __volatile("mtpmr %0,%1" : : "K"(reg), "r"(val))
|
||||
|
Loading…
Reference in New Issue
Block a user