hwpmc: don't do EMIT64 on constant

This commit is contained in:
Matt Macy 2018-06-07 02:20:27 +00:00
parent f992dd4b5c
commit 9616acde97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334750

View File

@ -739,7 +739,8 @@ pmclog_configure_log(struct pmc_mdep *md, struct pmc_owner *po, int logfd)
PMCLOG_EMIT64(tsc_freq);
#else
/* other architectures will need to fill this in */
PMCLOG_EMIT64(0);
PMCLOG_EMIT32(0);
PMCLOG_EMIT32(0);
#endif
memcpy(_le, &ts, sizeof(ts));
_le += sizeof(ts)/4;