X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fextensions%2Ftm_util.h;h=c73a985fa8e2b06cdc2fb5b754373877ef2938e1;hb=604e1d91e2cb21ca9b0afcb9a27cabd7119d67a4;hp=3af8cfe8cd95f159a34db719e2a4504b08a17a55;hpb=1675f10b6a5173570788c4fc5e013925c0189fea;p=palacios.git diff --git a/palacios/include/extensions/tm_util.h b/palacios/include/extensions/tm_util.h index 3af8cfe..c73a985 100644 --- a/palacios/include/extensions/tm_util.h +++ b/palacios/include/extensions/tm_util.h @@ -7,8 +7,8 @@ * and the University of New Mexico. You can find out more at * http://www.v3vee.org * - * Copyright (c) 2008, Jack Lange - * Copyright (c) 2008, The V3VEE Project + * Copyright (c) 2012, NWU EECS 441 Transactional Memory Team + * Copyright (c) 2012, The V3VEE Project * All rights reserved. * * Author: Maciek Swiech @@ -32,11 +32,15 @@ PrintError(_core->vm_info, _core, "TM %10s | " msg , #label, ##__VA_ARGS__); \ } while (0); +#ifdef V3_CONFIG_DEBUG_TM_FUNC #define TM_DBG(core, label, msg, ...) \ do { \ typeof (core) _core = (core); \ PrintDebug(_core->vm_info, _core, "TM %10s | " msg , #label, ##__VA_ARGS__); \ } while (0); +#else +#define TM_DBG(cor, label, msg, ...) +#endif struct mem_op { addr_t guest_addr;