Two Massachusetts lawmakers want to make attacks against police officers a hate crime.

Democratic Reps. Michelle DuBois, of Brockton, and Alan Silvia, of Fall River, filed a bill following the fatal shooting of five officers in Dallas on Thursday.

The bill would add police officers to the list of protected classes under the state's hate crimes law.

Silvia, a retired Fall River officer, says police deserve every protection.

DuBois says she drafted the bill after Auburn police Officer Ronald Tarentino Jr. was shot and killed during a traffic stop in May. The Legislature's session ends July 31.

The lawmakers say their bill would make Massachusetts the second state to make attacks on police hate crimes.

Republican Gov. Charlie Baker wants to toughen potential penalties for people charged with assaulting police.