summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate-arch/annotate-arc.c
blob: 170103e383a4168d41c770ff1d2cdca0016f7bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0
#include <linux/compiler.h>
#include <linux/zalloc.h>
#include "../disasm.h"

const struct arch *arch__new_arc(const struct e_machine_and_e_flags *id,
				 const char *cpuid __maybe_unused)
{
	struct arch *arch = zalloc(sizeof(*arch));

	if (!arch)
		return NULL;

	arch->name = "arc";
	arch->id = *id;
	arch->objdump.comment_char = ';';
	return arch;
}