aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/misc.h')
-rw-r--r--sim/ppc/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/ppc/misc.h b/sim/ppc/misc.h
index 041bd6d..50301fd 100644
--- a/sim/ppc/misc.h
+++ b/sim/ppc/misc.h
@@ -58,6 +58,7 @@ do { \
} while (0)
#define ZALLOC(TYPE) (TYPE*)zalloc(sizeof(TYPE))
+#define NZALLOC(TYPE,N) ((TYPE*) zalloc (sizeof(TYPE) * (N)))
extern void *zalloc
(long size);