Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cpu: Prepare Socket container type
Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Mar 19, 2015
1 parent abf0197 commit d33c7ca
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/cpu/Makefile.objs
Expand Up @@ -3,4 +3,4 @@ obj-$(CONFIG_REALVIEW) += realview_mpcore.o
obj-$(CONFIG_A9MPCORE) += a9mpcore.o
obj-$(CONFIG_A15MPCORE) += a15mpcore.o
obj-$(CONFIG_ICC_BUS) += icc_bus.o

obj-y += socket.o
21 changes: 21 additions & 0 deletions hw/cpu/socket.c
@@ -0,0 +1,21 @@
/*
* CPU socket abstraction
*
* Copyright (c) 2013-2014 SUSE LINUX Products GmbH
* Copyright (c) 2015 SUSE Linux GmbH
*/

#include "hw/cpu/socket.h"

static const TypeInfo cpu_socket_type_info = {
.name = TYPE_CPU_SOCKET,
.parent = TYPE_DEVICE,
.abstract = true,
};

static void cpu_socket_register_types(void)
{
type_register_static(&cpu_socket_type_info);
}

type_init(cpu_socket_register_types)
14 changes: 14 additions & 0 deletions include/hw/cpu/socket.h
@@ -0,0 +1,14 @@
/*
* CPU socket abstraction
*
* Copyright (c) 2013-2014 SUSE LINUX Products GmbH
* Copyright (c) 2015 SUSE Linux GmbH
*/
#ifndef HW_CPU_SOCKET_H
#define HW_CPU_SOCKET_H

#include "hw/qdev.h"

#define TYPE_CPU_SOCKET "cpu-socket"

#endif

0 comments on commit d33c7ca

Please sign in to comment.