GDB (API)
Defines | Typedefs | Functions
/home/stan/gdb/src/gdb/dcache.c File Reference
#include "defs.h"
#include "dcache.h"
#include "gdbcmd.h"
#include "gdb_string.h"
#include "gdbcore.h"
#include "target.h"
#include "inferior.h"
#include "splay-tree.h"

Go to the source code of this file.

Defines

#define DCACHE_DEFAULT_SIZE   4096
#define DCACHE_DEFAULT_LINE_SIZE   64
#define LINE_SIZE_MASK(dcache)   ((dcache->line_size - 1))
#define XFORM(dcache, x)   ((x) & LINE_SIZE_MASK (dcache))
#define MASK(dcache, x)   ((x) & ~LINE_SIZE_MASK (dcache))

Typedefs

typedef void( block_func )(struct dcache_block *block, void *param)

Functions

void _initialize_dcache (void)
void dcache_free (DCACHE *dcache)
void dcache_invalidate (DCACHE *dcache)
DCACHEdcache_init (void)
int dcache_xfer_memory (struct target_ops *ops, DCACHE *dcache, CORE_ADDR memaddr, gdb_byte *myaddr, int len, int should_write)
void dcache_update (DCACHE *dcache, CORE_ADDR memaddr, gdb_byte *myaddr, int len)

Define Documentation

#define DCACHE_DEFAULT_LINE_SIZE   64

Definition at line 83 of file dcache.c.

#define DCACHE_DEFAULT_SIZE   4096

Definition at line 77 of file dcache.c.

#define LINE_SIZE_MASK (   dcache)    ((dcache->line_size - 1))

Definition at line 89 of file dcache.c.

#define MASK (   dcache,
 
)    ((x) & ~LINE_SIZE_MASK (dcache))

Definition at line 91 of file dcache.c.

#define XFORM (   dcache,
 
)    ((x) & LINE_SIZE_MASK (dcache))

Definition at line 90 of file dcache.c.


Typedef Documentation

typedef void( block_func)(struct dcache_block *block, void *param)

Definition at line 121 of file dcache.c.


Function Documentation

void _initialize_dcache ( void  )
void dcache_free ( DCACHE dcache)

Definition at line 226 of file dcache.c.

DCACHE* dcache_init ( void  )

Definition at line 456 of file dcache.c.

void dcache_invalidate ( DCACHE dcache)

Definition at line 254 of file dcache.c.

void dcache_update ( DCACHE dcache,
CORE_ADDR  memaddr,
gdb_byte myaddr,
int  len 
)

Definition at line 552 of file dcache.c.

int dcache_xfer_memory ( struct target_ops ops,
DCACHE dcache,
CORE_ADDR  memaddr,
gdb_byte myaddr,
int  len,
int  should_write 
)

Definition at line 488 of file dcache.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines