*/
/**
- * \file spe_asm.c
+ * \file
* Real-time assembly generation interface for Cell B.E. SPEs.
*
* \author Ian Romanick <idr@us.ibm.com>
*/
-#ifdef GALLIUM_CELL
-#include <inttypes.h>
-#include <imports.h>
-#include "spe_asm.h"
+#include "pipe/p_compiler.h"
+#include "pipe/p_util.h"
+#include "rtasm_ppc_spe.h"
+
+#ifdef GALLIUM_CELL
/**
* SPE instruction types
*
emit_RI16(p, _op, 0, imm); \
}
-#include "spe_asm.h"
+#include "rtasm_ppc_spe.h"
/*
*/
void spe_init_func(struct spe_function *p, unsigned code_size)
{
- p->store = _mesa_align_malloc(code_size, 16);
+ p->store = align_malloc(code_size, 16);
p->csr = p->store;
}
void spe_release_func(struct spe_function *p)
{
- _mesa_align_free(p->store);
+ align_free(p->store);
p->store = NULL;
p->csr = NULL;
}
*/
/**
- * \file spe_asm.h
+ * \file
* Real-time assembly generation interface for Cell B.E. SPEs.
*
* \author Ian Romanick <idr@us.ibm.com>
*/
-#ifndef SPE_ASM_H
-#define SPE_ASM_H
+#ifndef RTASM_PPC_SPE_H
+#define RTASM_PPC_SPE_H
struct spe_function {
/**
extern void spe_init_func(struct spe_function *p, unsigned code_size);
extern void spe_release_func(struct spe_function *p);
-#endif /* SPE_ASM_H */
+#endif /* RTASM_PPC_SPE_H */
#ifndef EMIT_
#define EMIT_(name, _op) \
#include "../auxiliary/draw/draw_private.h"
#include "cell_context.h"
-#include "ppc/rtasm/spe_asm.h"
+#include "rtasm/rtasm_ppc_spe.h"
typedef uint64_t register_mask;