ovni/prv.c

38 lines
624 B
C
Raw Normal View History

2021-08-02 10:08:58 +02:00
#include <stdio.h>
#include <assert.h>
#include "ovni.h"
#include "emu.h"
void
prv_ev_row(struct ovni_emu *emu, int row, int type, int val)
{
printf("2:0:1:1:%d:%ld:%d:%d\n",
row, emu->delta_time, type, val);
}
void
prv_ev_autocpu(struct ovni_emu *emu, int type, int val)
{
int row;
struct ovni_cpu *cpu;
assert(emu->cur_thread);
cpu = emu->cur_thread->cpu;
assert(cpu);
2021-08-02 18:15:59 +02:00
assert(cpu->i >= 0);
2021-08-02 10:08:58 +02:00
/* Begin at 1 */
2021-08-02 18:15:59 +02:00
row = cpu->i + 1;
2021-08-02 10:08:58 +02:00
prv_ev_row(emu, row, type, val);
}
2021-08-02 21:13:03 +02:00
void
prv_header(struct ovni_emu *emu, int nrows)
{
printf("#Paraver (19/01/38 at 03:14):00000000000000000000_ns:0:1:1(%d:1)\n", nrows);
}