gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
mc146818.cc File Reference
#include "dev/mc146818.hh"
#include <sys/time.h>
#include <ctime>
#include <string>
#include "base/bitfield.hh"
#include "base/time.hh"
#include "base/trace.hh"
#include "debug/MC146818.hh"
#include "dev/rtcreg.h"

Go to the source code of this file.

Functions

static uint8_t bcdize (uint8_t val)
 
static uint8_t unbcdize (uint8_t val)
 

Function Documentation

◆ bcdize()

static uint8_t bcdize ( uint8_t  val)
static

Definition at line 43 of file mc146818.cc.

References X86ISA::val.

Referenced by MC146818::setTime().

◆ unbcdize()

static uint8_t unbcdize ( uint8_t  val)
static

Definition at line 52 of file mc146818.cc.

References X86ISA::val.

Referenced by MC146818::writeData().


Generated on Tue Jun 22 2021 15:28:33 for gem5 by doxygen 1.8.17